Author: mbosma
Date: Sat May 12 20:28:54 2007
New Revision: 26730
URL: http://svn.reactos.org/svn/reactos?rev=26730&view=rev
Log:
Formating
Modified:
trunk/reactos/dll/directx/ddraw/ddraw_structures.txt
Modified: trunk/reactos/dll/directx/ddraw/ddraw_structures.txt
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/ddraw_st…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/ddraw_structures.txt (original)
+++ trunk/reactos/dll/directx/ddraw/ddraw_structures.txt Sat May 12 20:28:54 2007
@@ -1,21 +1,21 @@
-* DirectDraw Object struct
-
- DDRAWI_DIRECTDRAW_INT
- it is the the return pointer from ddraw.dll to the program
-
- DDRAWI_DIRECTDRAW_LCL
- It is the program own private data
-
- DDRAWI_DIRECTDRAW_GBL
- This struct is gboal for whole ddraw.dll for all program
- it is static in ddraw if it change it change for all
- program
-
- The struct
-
- from http://msdn2.microsoft.com/en-us/library/ms898267.aspx
- it was not document for windows 2000/xp/2003 but ms did document it
- for windows ce 5.0 the link are to windows ce 5.0 arch
+DirectDraw Object struct
+
+DDRAWI_DIRECTDRAW_INT
+it is the the return pointer from ddraw.dll to the program
+
+DDRAWI_DIRECTDRAW_LCL
+It is the program own private data
+
+DDRAWI_DIRECTDRAW_GBL
+This struct is gboal for whole ddraw.dll for all program
+it is static in ddraw if it change it change for all
+program
+
+The struct
+
+from http://msdn2.microsoft.com/en-us/library/ms898267.aspx
+it was not document for windows 2000/xp/2003 but ms did document it
+for windows ce 5.0 the link are to windows ce 5.0 arch
typedef struct _DDRAWI_DIRECTDRAW_INT {
LPVOID lpVtbl;
@@ -24,7 +24,7 @@
DWORD dwIntRefCnt;
} DDRAWI_DIRECTDRAW_INT;
- rest of the struct are from msdn for windows 2000/xp/2003
+Rest of the struct are from msdn for windows 2000/xp/2003
typedef struct _DDRAWI_DIRECTDRAW_LCL {
DWORD lpDDMore;
LPDDRAWI_DIRECTDRAW_GBL lpGbl; // fill it from function Create_DirectDraw with static pointer ddgbl
@@ -53,7 +53,6 @@
ULONG_PTR hGammaCalibrator;
LPDDGAMMACALIBRATORPROC lpGammaCalibrator;
} DDRAWI_DIRECTDRAW_LCL;
-
typedef struct _DDRAWI_DIRECTDRAW_GBL {
DWORD dwRefCnt;
@@ -128,23 +127,19 @@
DDSCAPSEX ddsCapsMore;
} DDRAWI_DIRECTDRAW_GBL;
-
-*/
-
-
-/* Clipper Object struct
- DDRAWI_DDRAWCLIPPER_INT
- it is the the return pointer from ddraw.dll to the program
-
- DDRAWI_DDRAWCLIPPER_LCL
- It is the program own private data
-
- DDRAWI_DDRAWCLIPPER_GBL
- This struct is gboal for whole ddraw.dll for all program
- it is static in ddraw if it change it change for all
- program
-
- The struct
+Clipper Object struct
+DDRAWI_DDRAWCLIPPER_INT
+It is the the return pointer from ddraw.dll to the program
+
+DDRAWI_DDRAWCLIPPER_LCL
+It is the program own private data
+
+DDRAWI_DDRAWCLIPPER_GBL
+This struct is gboal for whole ddraw.dll for all program
+it is static in ddraw if it change it change for all
+program
+
+The struct
typedef struct _DDRAWI_DDRAWCLIPPER_INT {
LPVOID lpVtbl;
@@ -164,6 +159,7 @@
IUnknown *pAddrefedThisOwner;
} DDRAWI_DDRAWCLIPPER_LCL;
+
typedef struct _DDRAWI_DDRAWCLIPPER_GBL {
DWORD dwRefCnt;
DWORD dwFlags;
@@ -173,11 +169,7 @@
ULONG_PTR hWnd;
LPRGNDATA lpStaticClipList;
} DDRAWI_DDRAWCLIPPER_GBL;
-*/
-
-
-
-/*
+
typedef struct _DDRAWI_DDRAWPALETTE_INT {
LPVOID lpVtbl;
LPDDRAWI_DDRAWPALETTE_LCL lpLcl;
@@ -213,9 +205,8 @@
DWORD dwSaveStamp;
DWORD dwHandle;
} DDRAWI_DDRAWPALETTE_GBL;
-*/
-
-/*
+
+
typedef struct _DDRAWI_DDVIDEOPORT_INT {
LPVOID lpVtbl;
LPDDRAWI_DDVIDEOPORT_LCL lpLcl;
@@ -249,7 +240,8 @@
} DDRAWI_DDVIDEOPORT_LCL;
-Surface
+Surface:
+
typedef struct _DDRAWI_DDRAWSURFACE_GBL {
DWORD dwRefCnt;
DWORD dwGlobalFlags;
@@ -277,14 +269,10 @@
DDPIXELFORMAT ddpfSurface;
} DDRAWI_DDRAWSURFACE_GBL;
-*/
-
-
-/* This comment info maybe is wrong
- bare in mind I am using logic thinking
- for follow info does not exists in MSDN
- so I am drawing clude how previews stuffs
- works that are document in MSDN/DDK
+The following informations might be incorrectly
+I am using logic thinking since the info does
+not exists in MSDN so I am drawing clue how
+previews stuffs works that are document in MSDN/DDK
follow struct should exists ???
DDRAWI_DDVIDEOPORT_GBL
@@ -319,6 +307,7 @@
build. But it is not 100% sure this one is right untill I/we known how
the DDRAWI_DDGAMMACONTROL_LCL works and DDRAWI_DDCOLORCONTROL_GBL
our internal struct will look like this
+
typedef struct _DDRAWI_DDGAMMACONTROL_INT
{
LPVOID lpVtbl;
Author: mbosma
Date: Sat May 12 19:45:54 2007
New Revision: 26726
URL: http://svn.reactos.org/svn/reactos?rev=26726&view=rev
Log:
Fix warning.
Modified:
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c Sat May 12 19:45:54 2007
@@ -133,9 +133,9 @@
HWND window;
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT)iface;
-#if 0 // this check is totally invalid if you ask me - mbosma
/* Get the old window */
window = (HWND) This->lpLcl->hWnd;
+#if 0 // this check is totally invalid if you ask me - mbosma
if(!window)
{
return DDERR_NOHWND;