Author: andreas Date: 2010-04-03 10:44:56 -0700 (Sat, 03 Apr 2010) New Revision: 2173 Modified: trunk/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c Log: Update function prototypes. Modified: trunk/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c =================================================================== --- trunk/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c 2010-04-02 15:05:54 UTC (rev 2172) +++ trunk/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c 2010-04-03 17:44:56 UTC (rev 2173) @@ -135,7 +135,7 @@ /* closeWindow: arg is int windowIndex. Fail (return 0) if anything goes wrong * - typically the windowIndex invalid or similar */ -int closeWindow(int windowIndex) { +sqInt closeWindow(sqInt windowIndex) { HWND hwnd = (windowIndex == 1 ? stWindow : ((HWND)windowIndex)); if (!IsWindow(hwnd)) return 0; DestroyWindow(hwnd); @@ -147,7 +147,7 @@ * Failure may occur because of an inability to add the window, too many * windows already extant (platform dependant), the specified size being * unreasonable etc. */ -int createWindowWidthheightoriginXyattrlength(int w, int h, int x, int y, char * list, int attributeListLength) { +sqInt createWindowWidthheightoriginXyattrlength(sqInt w, sqInt h, sqInt x, sqInt y, char * list, sqInt attributeListLength) { HWND hwnd; WNDCLASS wc; @@ -191,7 +191,10 @@ /* ioShowDisplayOnWindow: similar to ioShowDisplay but adds the int windowIndex * Return true if ok, false if not, but not currently checked */ -int ioShowDisplayOnWindow( unsigned* dispBits, int width, int height, int depth, int affectedL, int affectedR, int affectedT, int affectedB, int windowIndex) { +sqInt ioShowDisplayOnWindow(unsigned char* dispBits, sqInt width, + sqInt height, sqInt depth, sqInt affectedL, + sqInt affectedR, sqInt affectedT, sqInt affectedB, + sqInt windowIndex) { HWND hwnd = (windowIndex == 1 ? stWindow : ((HWND)windowIndex)); HDC dc; BITMAPINFO *bmi; @@ -321,7 +324,7 @@ * Return -1 for failure - typically invalid windowIndex * -1 is chosen since itwould correspond to a window size of 64k@64k which * I hope is unlikely for some time to come */ -int ioSizeOfWindow(int windowIndex) { +sqInt ioSizeOfWindow(sqInt windowIndex) { HWND hwnd = (windowIndex == 1 ? stWindow : ((HWND)windowIndex)); RECT boundingRect; int wsize; @@ -337,7 +340,7 @@ /* ioSizeOfWindowSetxy: args are int windowIndex, int w & h for the * width / height to make the window. Return the actual size the OS * produced in (width<<16 | height) format or -1 for failure as above. */ -int ioSizeOfWindowSetxy(int windowIndex, int w, int h) { +sqInt ioSizeOfWindowSetxy(sqInt windowIndex, sqInt w, sqInt h) { HWND hwnd = (windowIndex == 1 ? stWindow : ((HWND)windowIndex)); RECT boundingRect; int wsize; @@ -357,7 +360,7 @@ /* ioPositionOfWindow: arg is int windowIndex. Return the pos of the specified * window in (left<<16 | top) format like ioScreenSize. * Return -1 (as above) for failure - tpyically invalid windowIndex */ -int ioPositionOfWindow(int windowIndex) { +sqInt ioPositionOfWindow(sqInt windowIndex) { HWND hwnd = (windowIndex == 1 ? stWindow : ((HWND)windowIndex)); RECT boundingRect; int wpos; @@ -372,7 +375,7 @@ /* ioPositionOfWindowSetxy: args are int windowIndex, int x & y for the * origin x/y for the window. Return the actual origin the OS * produced in (left<<16 | top) format or -1 for failure, as above */ -int ioPositionOfWindowSetxy(int windowIndex, int x, int y) { +sqInt ioPositionOfWindowSetxy(sqInt windowIndex, sqInt x, sqInt y) { HWND hwnd = (windowIndex == 1 ? stWindow : ((HWND)windowIndex)); RECT boundingRect; int wpos; @@ -389,7 +392,7 @@ /* ioSetTitleOfWindow: args are int windowIndex, char* newTitle and * int size of new title. Fail with -1 if windowIndex is invalid, string is too long for platform etc. Leave previous title in place on failure */ -int ioSetTitleOfWindow(int windowIndex, char * newTitle, int sizeOfTitle) { +sqInt ioSetTitleOfWindow(sqInt windowIndex, char * newTitle, sqInt sizeOfTitle) { HWND hwnd = (windowIndex == 1 ? stWindow : ((HWND)windowIndex)); char titleString[1024]; WCHAR wideTitle[1024]; @@ -407,6 +410,6 @@ * Close all the windows that appear to be open. * No useful return value since we're getting out of Dodge anyway. */ -int ioCloseAllWindows(void){ +sqInt ioCloseAllWindows(void){ } |
Free forum by Nabble | Edit this page |