diff --git a/Standard Gaming Platform/Button System.h b/Standard Gaming Platform/Button System.h index ebcb77dc..a0adc624 100644 --- a/Standard Gaming Platform/Button System.h +++ b/Standard Gaming Platform/Button System.h @@ -46,9 +46,9 @@ #define BUTTON_INIT 1 #define BUTTON_WAS_CLICKED 2 -//effects how the button is rendered. +//affects how the button is rendered. #define BUTTON_TYPES ( BUTTON_QUICK | BUTTON_GENERIC | BUTTON_HOT_SPOT | BUTTON_CHECKBOX ) -//effects how the button is processed +//affects how the button is processed #define BUTTON_TYPE_MASK (BUTTON_NO_TOGGLE| BUTTON_ALLOW_DISABLED_CALLBACK | BUTTON_CHECKBOX | BUTTON_IGNORE_CLICKS ) //button flags diff --git a/Standard Gaming Platform/himage.h b/Standard Gaming Platform/himage.h index 10b57c8a..72167b73 100644 --- a/Standard Gaming Platform/himage.h +++ b/Standard Gaming Platform/himage.h @@ -105,23 +105,23 @@ typedef struct // data strucutre of the compresssed format, once developed. union { - struct - { + //struct + //{ PTR pImageData; - }; - struct - { + //}; + //struct + //{ PTR pCompressedImageData; - }; - struct - { + //}; + //struct + //{ UINT8 *p8BPPData; - }; - struct - { + //}; + //struct + //{ UINT16 *p16BPPData; - }; + //}; struct { UINT8 * pPixData8; diff --git a/Standard Gaming Platform/sgp.cpp b/Standard Gaming Platform/sgp.cpp index eabaa98d..3d6bc803 100644 --- a/Standard Gaming Platform/sgp.cpp +++ b/Standard Gaming Platform/sgp.cpp @@ -162,6 +162,9 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP // if( 1==iScreenMode ) { GetClientRect(hWindow, &rcWindow); + // Go ahead and clamp the client width and height + rcWindow.right = SCREEN_WIDTH; + rcWindow.bottom = SCREEN_HEIGHT; ClientToScreen(hWindow, (LPPOINT)&rcWindow); ClientToScreen(hWindow, (LPPOINT)&rcWindow+1); int xPos = (int)(short) LOWORD(lParam); diff --git a/Standard Gaming Platform/vobject.h b/Standard Gaming Platform/vobject.h index 3713f55c..a2f6b8e6 100644 --- a/Standard Gaming Platform/vobject.h +++ b/Standard Gaming Platform/vobject.h @@ -113,14 +113,14 @@ typedef struct UINT32 fCreateFlags; // Specifies creation flags like from file or not union { - struct - { + //struct + //{ SGPFILENAME ImageFile; // Filename of image data to use - }; - struct - { + //}; + //struct + //{ HIMAGE hImage; - }; + //}; }; UINT8 ubBitDepth; // BPP, ignored if given from file } VOBJECT_DESC;