Mercurial > sdl-ios-xcode
diff src/video/photon/SDL_ph_video.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 | ba72f259bc88 |
children | 8e3ce997621c |
line wrap: on
line diff
--- a/src/video/photon/SDL_ph_video.c Tue May 28 19:24:11 2002 +0000 +++ b/src/video/photon/SDL_ph_video.c Tue May 28 19:31:32 2002 +0000 @@ -192,6 +192,7 @@ { exit(EXIT_FAILURE); } + memset(event, 0x00, EVENT_SIZE); /* Create the blank cursor */ SDL_BlankCursor = this->CreateWMCursor(this, blank_cdata, blank_cmask, @@ -200,17 +201,17 @@ if (SDL_BlankCursor == NULL) { - printf("ph_VideoInit: could not create blank cursor\n"); + printf("ph_VideoInit(): could not create blank cursor !\n"); } if (PgGetGraphicsHWCaps(&my_hwcaps) < 0) { - fprintf(stderr,"ph_VideoInit: GetGraphicsHWCaps failed!! \n"); + fprintf(stderr,"ph_VideoInit(): GetGraphicsHWCaps failed !\n"); } if (PgGetVideoModeInfo(my_hwcaps.current_video_mode, &my_mode_info) < 0) { - fprintf(stderr,"ph_VideoInit: PgGetVideoModeInfo failed\n"); + fprintf(stderr,"ph_VideoInit(): PgGetVideoModeInfo failed !\n"); } /* We need to return BytesPerPixel as it in used by CreateRGBsurface */