diff --git a/src/land.c b/src/land.c index df581ab..d1f6217 100644 --- a/src/land.c +++ b/src/land.c @@ -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,