[Fix] Better support for 640x480

This commit is contained in:
Allanis 2013-03-07 14:45:13 +00:00
parent b8f4ee9443
commit 88c7ad1156

View File

@ -23,8 +23,6 @@
// Shipyard.
#define SHIPYARD_WIDTH 700
#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.
#define NEWS_WIDTH 400
@ -107,8 +105,7 @@ static void shipyard(void) {
int nships;
secondary_wid = window_create("Shipyard",
SHIPYARD_XPOS, SHIPYARD_YPOS,
SHIPYARD_WIDTH, SHIPYARD_HEIGHT);
-1, -1, SHIPYARD_WIDTH, SHIPYARD_HEIGHT);
window_addButton(secondary_wid, -20, 20,
BUTTON_WIDTH, BUTTON_HEIGHT, "btnCloseShipyard",
@ -137,7 +134,7 @@ static void shipyard(void) {
"Price:\n");
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,