Prevent screen sizes smaller than 640x480.

This commit is contained in:
onpon4 2017-03-28 11:03:53 -04:00
parent 209a007775
commit abc3fbd7c0
3 changed files with 4 additions and 4 deletions

View File

@ -755,8 +755,8 @@ const char * const systemBackground[] = {
};
const int rate2reload[6] = {15, 15, 13, 11, 9, 7};
const int screenWidth = SCREEN_WIDTH;
const int screenHeight = SCREEN_HEIGHT;
const int screenWidth = MAX(SCREEN_WIDTH, 640);
const int screenHeight = MAX(SCREEN_HEIGHT, 480);
const int xViewBorder = 100;
const int yViewBorder = 100;
const float cameraMaxSpeed = 3.;

View File

@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
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_unlockPlanets();

View File

@ -44,7 +44,7 @@ typedef struct ShopItem_ {
} ShopItem;
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_y = intermission_ycenter - shop_h / 2;