Skip to content

Commit

Permalink
Small change to aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSimpson committed Aug 26, 2014
1 parent 4934452 commit f5c7274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exit_menu_gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void init_exit_menu(exit_menu_t *state, gl_t *gl_state)
{
// Initialize program launcher images OpenGL state
int image_width = gl_state->screen_width/3.84;
int image_height = gl_state->screen_height/3.46;
int image_height = gl_state->screen_height/3.846;

float half_height = (image_height/(float)gl_state->screen_height);
float half_width = (image_width/(float)gl_state->screen_width);
Expand Down Expand Up @@ -76,7 +76,7 @@ void init_exit_menu(exit_menu_t *state, gl_t *gl_state)
// Initialize cursor
state->cursor_state = malloc(sizeof(cursor_t));
int cursor_width = gl_state->screen_width/16.0;
int cursor_height = gl_state->screen_height/6.75;
int cursor_height = gl_state->screen_height/7.5;

#ifdef RASPI
init_cursor(state->cursor_state, gl_state, "SPH/images/cursor.png", cursor_width, cursor_height);
Expand Down

0 comments on commit f5c7274

Please sign in to comment.