comparison src/video/cybergfx/SDL_cgxwm.c @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents d910939febfa
children
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
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: */