Mercurial > sdl-ios-xcode
comparison src/video/photon/SDL_ph_mouse.c @ 380:bce7171e7a85
Date: Wed, 22 May 2002 22:30:58 +0300
From: "Mike Gorchak" <mike@malva.com.ua>
Subject: One more QNX patch
Hi !
- Fixed graywin test application. Added properly support for
window size not equal to 640x480.
- Added support for not aligned pitch of image in SDL_SWSURFACE
and SDL_HWSURFACE. Using Photon builtin alignes.
- Added memory clear after each malloc to avoid problems in the
future :)
- Removed unused variables and static variables, fixed some warnings.
- Updated readme.QNX file.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 28 May 2002 19:31:32 +0000 |
parents | 3333b6e68289 |
children | 8e3ce997621c |
comparison
equal
deleted
inserted
replaced
379:11c8a7684f74 | 380:bce7171e7a85 |
---|---|
65 unsigned char bit, databit, maskbit; | 65 unsigned char bit, databit, maskbit; |
66 | 66 |
67 /* Allocate and initialize the cursor memory */ | 67 /* Allocate and initialize the cursor memory */ |
68 if ((cursor = (WMcursor*)malloc(sizeof(WMcursor))) == NULL) | 68 if ((cursor = (WMcursor*)malloc(sizeof(WMcursor))) == NULL) |
69 { | 69 { |
70 SDL_OutOfMemory(); | 70 SDL_OutOfMemory(); |
71 return(NULL); | 71 return(NULL); |
72 } | 72 } |
73 memset(cursor,0,sizeof(WMcursor)); | 73 memset(cursor,0,sizeof(WMcursor)); |
74 | 74 |
75 cursor->ph_cursor = (PhCursorDef_t *) malloc(sizeof(PhCursorDef_t) + 32*4*2); | 75 cursor->ph_cursor = (PhCursorDef_t *) malloc(sizeof(PhCursorDef_t) + 32*4*2); |
76 if(cursor->ph_cursor == NULL) | 76 if(cursor->ph_cursor == NULL) |