2 |
|
* Display_SDL.h - C64 graphics display, emulator window handling, |
3 |
|
* SDL specific stuff |
4 |
|
* |
5 |
< |
* Frodo (C) 1994-1997,2002-2003 Christian Bauer |
5 |
> |
* Frodo (C) 1994-1997,2002-2009 Christian Bauer |
6 |
|
* |
7 |
|
* This program is free software; you can redistribute it and/or modify |
8 |
|
* it under the terms of the GNU General Public License as published by |
81 |
|
return 0; |
82 |
|
} |
83 |
|
|
84 |
– |
// Open window |
85 |
– |
SDL_WM_SetCaption(VERSION_STRING, "Frodo"); |
86 |
– |
screen = SDL_SetVideoMode(DISPLAY_X, DISPLAY_Y + 17, 8, SDL_DOUBLEBUF); |
87 |
– |
|
84 |
|
return 1; |
85 |
|
} |
86 |
|
|
94 |
|
quit_requested = false; |
95 |
|
speedometer_string[0] = 0; |
96 |
|
|
97 |
+ |
// Open window |
98 |
+ |
SDL_WM_SetCaption(VERSION_STRING, "Frodo"); |
99 |
+ |
screen = SDL_SetVideoMode(DISPLAY_X, DISPLAY_Y + 17, 8, SDL_DOUBLEBUF | (ThePrefs.DisplayType == DISPTYPE_SCREEN ? SDL_FULLSCREEN : 0)); |
100 |
+ |
|
101 |
|
// LEDs off |
102 |
|
for (int i=0; i<4; i++) |
103 |
|
led_state[i] = old_led_state[i] = LED_OFF; |
598 |
|
* Show a requester (error message) |
599 |
|
*/ |
600 |
|
|
601 |
< |
long int ShowRequester(char *a,char *b,char *) |
601 |
> |
long int ShowRequester(const char *a, const char *b, const char *) |
602 |
|
{ |
603 |
|
printf("%s: %s\n", a, b); |
604 |
|
return 1; |