|
|
| version 1.5, 2007/01/12 19:09:58 | version 1.8, 2007/01/24 14:09:32 |
|---|---|
| Line 33 | Line 33 |
| #include "palettes.h" | #include "palettes.h" |
| #include "scrndraw.h" | #include "scrndraw.h" |
| #include "toolkit.h" | |
| #include "scrnmng.h" | #include "scrnmng.h" |
| #include "mousemng.h" | |
| #include "soundmng.h" | |
| #include "gtk2/xnp2.h" | #include "gtk2/xnp2.h" |
| #include "gtk2/gtk_drawmng.h" | #include "gtk2/gtk_drawmng.h" |
| Line 71 typedef struct { | Line 75 typedef struct { |
| static SCRNMNG scrnmng; | static SCRNMNG scrnmng; |
| static DRAWMNG drawmng; | static DRAWMNG drawmng; |
| static SCRNSTAT scrnstat; | static SCRNSTAT scrnstat = { 640, 400, 1, SCREEN_DEFMUL }; |
| static SCRNSURF scrnsurf; | static SCRNSURF scrnsurf; |
| static int real_fullscreen; | static int real_fullscreen; |
| Line 445 scrnmng_destroy(void) | Line 449 scrnmng_destroy(void) |
| } | } |
| } | } |
| void | |
| scrnmng_fullscreen(int onoff) | |
| { | |
| if (onoff) { | |
| if (real_fullscreen) { | |
| gtk_window_fullscreen_mode(main_window); | |
| } else { | |
| gtk_window_fullscreen(GTK_WINDOW(main_window)); | |
| } | |
| } else { | |
| if (real_fullscreen) { | |
| gtk_window_restore_mode(main_window); | |
| } else { | |
| gtk_window_unfullscreen(GTK_WINDOW(main_window)); | |
| } | |
| } | |
| } | |
| RGB16 | RGB16 |
| scrnmng_makepal16(RGB32 pal32) | scrnmng_makepal16(RGB32 pal32) |
| { | { |
| Line 487 scrnmng_setmultiple(int multiple) | Line 510 scrnmng_setmultiple(int multiple) |
| if (scrnstat.multiple != multiple) { | if (scrnstat.multiple != multiple) { |
| scrnstat.multiple = multiple; | scrnstat.multiple = multiple; |
| soundmng_stop(); | |
| mouse_running(MOUSE_STOP); | |
| scrnmng_destroy(); | |
| if (scrnmng_create(scrnmode) != SUCCESS) { | |
| toolkit_widget_quit(); | |
| return; | |
| } | |
| renewal_client_size(); | renewal_client_size(); |
| scrndraw_redraw(); | |
| mouse_running(MOUSE_CONT); | |
| soundmng_play(); | |
| } | } |
| } | } |