Mercurial > sdl-ios-xcode
comparison src/video/cybergfx/SDL_cgxwm.c @ 1662:782fd950bd46 SDL-1.3
Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API.
WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid.
The code is now run through a consistent indent format:
indent -i4 -nut -nsc -br -ce
The headers are being converted to automatically generate doxygen documentation.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 28 May 2006 13:04:16 +0000 |
parents | d910939febfa |
children | 4da1ee79c9af |
comparison
equal
deleted
inserted
replaced
1661:281d3f4870e5 | 1662:782fd950bd46 |
---|---|
31 #include "SDL_cgxwm_c.h" | 31 #include "SDL_cgxwm_c.h" |
32 | 32 |
33 /* This is necessary for working properly with Enlightenment, etc. */ | 33 /* This is necessary for working properly with Enlightenment, etc. */ |
34 #define USE_ICON_WINDOW | 34 #define USE_ICON_WINDOW |
35 | 35 |
36 void CGX_SetIcon(_THIS, SDL_Surface *icon, Uint8 *mask) | 36 void |
37 CGX_SetIcon (_THIS, SDL_Surface * icon, Uint8 * mask) | |
37 { | 38 { |
38 /* Not yet implemented */ | 39 /* Not yet implemented */ |
39 } | 40 } |
40 | 41 |
41 void CGX_SetCaption(_THIS, const char *title, const char *icon) | 42 void |
43 CGX_SetCaption (_THIS, const char *title, const char *icon) | |
42 { | 44 { |
43 if(SDL_Window) | 45 if (SDL_Window) |
44 SetWindowTitles(SDL_Window,(char *)title,NULL); | 46 SetWindowTitles (SDL_Window, (char *) title, NULL); |
45 } | 47 } |
46 | 48 |
47 /* Iconify the window */ | 49 /* Iconify the window */ |
48 int CGX_IconifyWindow(_THIS) | 50 int |
51 CGX_IconifyWindow (_THIS) | |
49 { | 52 { |
50 /* Not yet implemented */ | 53 /* Not yet implemented */ |
51 return 0; | 54 return 0; |
52 } | 55 } |
53 | 56 |
54 int CGX_GetWMInfo(_THIS, SDL_SysWMinfo *info) | 57 int |
58 CGX_GetWMInfo (_THIS, SDL_SysWMinfo * info) | |
55 { | 59 { |
56 if ( info->version.major <= SDL_MAJOR_VERSION ) { | 60 if (info->version.major <= SDL_MAJOR_VERSION) { |
57 return(1); | 61 return (1); |
58 } else { | 62 } else { |
59 SDL_SetError("Application not compiled with SDL %d.%d\n", | 63 SDL_SetError ("Application not compiled with SDL %d.%d\n", |
60 SDL_MAJOR_VERSION, SDL_MINOR_VERSION); | 64 SDL_MAJOR_VERSION, SDL_MINOR_VERSION); |
61 return(-1); | 65 return (-1); |
62 } | 66 } |
63 } | 67 } |
68 | |
69 /* vi: set ts=4 sw=4 expandtab: */ |