aboutsummaryrefslogtreecommitdiffstats
path: root/graphics.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2003-03-26 05:25:06 +0000
committerH. Peter Anvin <hpa@zytor.com>2003-03-26 05:25:06 +0000
commit9bd970a1d7bc60d47e576b40857fa93a4690a83a (patch)
tree9ef4f510e68660565e22c54da728becdb5857fb9 /graphics.c
parent431fde7353bbe10030950ba749db2339db5411c6 (diff)
downloadgrv-9bd970a1d7bc60d47e576b40857fa93a4690a83a.tar.gz
grv-9bd970a1d7bc60d47e576b40857fa93a4690a83a.tar.xz
grv-9bd970a1d7bc60d47e576b40857fa93a4690a83a.zip
Add readme, add intro screen, make keyboard editing work
Diffstat (limited to 'graphics.c')
-rw-r--r--graphics.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics.c b/graphics.c
index 155d628..dd77c8d 100644
--- a/graphics.c
+++ b/graphics.c
@@ -381,14 +381,15 @@ void restore_screen(struct saved_screen *save)
/*
* Initialize SDL and the data structures
*/
-int screen_init(void)
+int screen_init(int window)
{
int i;
if ( SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO) )
return -1;
- if ( !(rscreen = SDL_SetVideoMode(PX_WIDTH, PX_HEIGHT, 32, SDL_SWSURFACE)) ) {
+ if ( !(rscreen = SDL_SetVideoMode(PX_WIDTH, PX_HEIGHT, 32,
+ SDL_SWSURFACE | (window ? 0 : SDL_FULLSCREEN))) ) {
SDL_Quit();
return -1;
}