775 |
/* |
/* |
776 |
* Determine desktop size |
* Determine desktop size |
777 |
*/ |
*/ |
778 |
if (g_width < 0) |
if (g_fullscreen) |
779 |
|
{ |
780 |
|
g_width = WidthOfScreen(g_screen); |
781 |
|
g_height = HeightOfScreen(g_screen); |
782 |
|
} |
783 |
|
else if (g_width < 0) |
784 |
{ |
{ |
785 |
/* Percent of screen */ |
/* Percent of screen */ |
786 |
g_height = HeightOfScreen(g_screen) * (-g_width) / 100; |
g_height = HeightOfScreen(g_screen) * (-g_width) / 100; |
803 |
g_height = 600; |
g_height = 600; |
804 |
} |
} |
805 |
} |
} |
|
else if (g_fullscreen) |
|
|
{ |
|
|
g_width = WidthOfScreen(g_screen); |
|
|
g_height = HeightOfScreen(g_screen); |
|
|
} |
|
806 |
|
|
807 |
/* make sure width is a multiple of 4 */ |
/* make sure width is a multiple of 4 */ |
808 |
g_width = (g_width + 3) & ~3; |
g_width = (g_width + 3) & ~3; |