[Fix] Better support for 640x480
This commit is contained in:
parent
b8f4ee9443
commit
88c7ad1156
@ -23,8 +23,6 @@
|
|||||||
// Shipyard.
|
// Shipyard.
|
||||||
#define SHIPYARD_WIDTH 700
|
#define SHIPYARD_WIDTH 700
|
||||||
#define SHIPYARD_HEIGHT 500
|
#define SHIPYARD_HEIGHT 500
|
||||||
#define SHIPYARD_XPOS (gl_screen.w-SHIPYARD_WIDTH)/2+100
|
|
||||||
#define SHIPYARD_YPOS (gl_screen.h-SHIPYARD_HEIGHT)/2-25
|
|
||||||
|
|
||||||
// News window.
|
// News window.
|
||||||
#define NEWS_WIDTH 400
|
#define NEWS_WIDTH 400
|
||||||
@ -107,8 +105,7 @@ static void shipyard(void) {
|
|||||||
int nships;
|
int nships;
|
||||||
|
|
||||||
secondary_wid = window_create("Shipyard",
|
secondary_wid = window_create("Shipyard",
|
||||||
SHIPYARD_XPOS, SHIPYARD_YPOS,
|
-1, -1, SHIPYARD_WIDTH, SHIPYARD_HEIGHT);
|
||||||
SHIPYARD_WIDTH, SHIPYARD_HEIGHT);
|
|
||||||
|
|
||||||
window_addButton(secondary_wid, -20, 20,
|
window_addButton(secondary_wid, -20, 20,
|
||||||
BUTTON_WIDTH, BUTTON_HEIGHT, "btnCloseShipyard",
|
BUTTON_WIDTH, BUTTON_HEIGHT, "btnCloseShipyard",
|
||||||
@ -137,7 +134,7 @@ static void shipyard(void) {
|
|||||||
"Price:\n");
|
"Price:\n");
|
||||||
|
|
||||||
window_addText(secondary_wid, 40+200+40+80, -80,
|
window_addText(secondary_wid, 40+200+40+80, -80,
|
||||||
128, 96, 0, "txtDDesc", &gl_smallFont, &cBlack, NULL);
|
120, 96, 0, "txtDDesc", &gl_smallFont, &cBlack, NULL);
|
||||||
|
|
||||||
|
|
||||||
window_addText(secondary_wid, 20+200+40, -160,
|
window_addText(secondary_wid, 20+200+40, -160,
|
||||||
|
Loading…
Reference in New Issue
Block a user