Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11modes.c @ 1196:b81f54c3963f
Fixed compile warnings with gcc 4
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 08 Dec 2005 14:21:17 +0000 |
parents | 045f186426e1 |
children | 09164d2b8373 |
comparison
equal
deleted
inserted
replaced
1195:bb6791b0a268 | 1196:b81f54c3963f |
---|---|
47 | 47 |
48 #ifdef XFREE86_VM | 48 #ifdef XFREE86_VM |
49 Bool SDL_NAME(XF86VidModeGetModeInfo)(Display *dpy, int scr, SDL_NAME(XF86VidModeModeInfo) *info) | 49 Bool SDL_NAME(XF86VidModeGetModeInfo)(Display *dpy, int scr, SDL_NAME(XF86VidModeModeInfo) *info) |
50 { | 50 { |
51 SDL_NAME(XF86VidModeModeLine) *l = (SDL_NAME(XF86VidModeModeLine)*)((char*)info + sizeof info->dotclock); | 51 SDL_NAME(XF86VidModeModeLine) *l = (SDL_NAME(XF86VidModeModeLine)*)((char*)info + sizeof info->dotclock); |
52 return SDL_NAME(XF86VidModeGetModeLine)(dpy, scr, &info->dotclock, l); | 52 return SDL_NAME(XF86VidModeGetModeLine)(dpy, scr, (int*)&info->dotclock, l); |
53 } | 53 } |
54 #endif /* XFREE86_VM */ | 54 #endif /* XFREE86_VM */ |
55 | 55 |
56 #ifdef XFREE86_VM | 56 #ifdef XFREE86_VM |
57 static void save_mode(_THIS) | 57 static void save_mode(_THIS) |