Prevent screen sizes smaller than 640x480.
This commit is contained in:
parent
209a007775
commit
abc3fbd7c0
|
@ -755,8 +755,8 @@ const char * const systemBackground[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const int rate2reload[6] = {15, 15, 13, 11, 9, 7};
|
const int rate2reload[6] = {15, 15, 13, 11, 9, 7};
|
||||||
const int screenWidth = SCREEN_WIDTH;
|
const int screenWidth = MAX(SCREEN_WIDTH, 640);
|
||||||
const int screenHeight = SCREEN_HEIGHT;
|
const int screenHeight = MAX(SCREEN_HEIGHT, 480);
|
||||||
const int xViewBorder = 100;
|
const int xViewBorder = 100;
|
||||||
const int yViewBorder = 100;
|
const int yViewBorder = 100;
|
||||||
const float cameraMaxSpeed = 3.;
|
const float cameraMaxSpeed = 3.;
|
||||||
|
|
|
@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
extern Planet intermission_planets[MAX_PLANETS];
|
extern Planet intermission_planets[MAX_PLANETS];
|
||||||
|
|
||||||
const int intermission_ycenter = 50 + (SCREEN_HEIGHT - 150) / 2;
|
const int intermission_ycenter = 50 + (screenHeight - 150) / 2;
|
||||||
|
|
||||||
void intermission_initPlanets(int system);
|
void intermission_initPlanets(int system);
|
||||||
void intermission_unlockPlanets();
|
void intermission_unlockPlanets();
|
||||||
|
|
|
@ -44,7 +44,7 @@ typedef struct ShopItem_ {
|
||||||
} ShopItem;
|
} ShopItem;
|
||||||
|
|
||||||
static const int shop_w = 600;
|
static const int shop_w = 600;
|
||||||
static const int shop_x = SCREEN_WIDTH / 2 - shop_w / 2;
|
static const int shop_x = screenWidth / 2 - shop_w / 2;
|
||||||
static const int shop_h = 336;
|
static const int shop_h = 336;
|
||||||
static const int shop_y = intermission_ycenter - shop_h / 2;
|
static const int shop_y = intermission_ycenter - shop_h / 2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue