comparison src/video/bwindow/SDL_syswm.cc @ 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 376665398b25
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #include "SDL_BWin.h" 24 #include "SDL_BWin.h"
25 25
26 extern "C" { 26 extern "C"
27 {
27 28
28 #include "SDL_syswm_c.h" 29 #include "SDL_syswm_c.h"
29 #include "SDL_error.h" 30 #include "SDL_error.h"
30 31
31 void BE_SetWMCaption(_THIS, const char *title, const char *icon) 32 void BE_SetWMCaption (_THIS, const char *title, const char *icon)
32 { 33 {
33 SDL_Win->SetTitle(title); 34 SDL_Win->SetTitle (title);
34 } 35 }
35 36
36 int BE_IconifyWindow(_THIS) 37 int BE_IconifyWindow (_THIS)
37 { 38 {
38 SDL_Win->Minimize(true); 39 SDL_Win->Minimize (true);
39 } 40 }
40 41
41 int BE_GetWMInfo(_THIS, SDL_SysWMinfo *info) 42 int BE_GetWMInfo (_THIS, SDL_SysWMinfo * info)
42 {
43 if (info->version.major <= SDL_MAJOR_VERSION)
44 { 43 {
45 return 1; 44 if (info->version.major <= SDL_MAJOR_VERSION) {
45 return 1;
46 } else {
47 SDL_SetError ("Application not compiled with SDL %d.%d\n",
48 SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
49 return -1;
50 }
46 } 51 }
47 else
48 {
49 SDL_SetError("Application not compiled with SDL %d.%d\n",
50 SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
51 return -1;
52 }
53 }
54 52
55 }; /* Extern C */ 53 }; /* Extern C */
54
55 /* vi: set ts=4 sw=4 expandtab: */