comparison src/video/bwindow/SDL_syswm.cc @ 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 376665398b25
children 99210400e8b9
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
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: */