Skip to content

Commit

Permalink
fixed problem with the last update : add #ifdef __EMSCRIPTEN__
Browse files Browse the repository at this point in the history
  • Loading branch information
patricetlk committed Nov 3, 2015
1 parent 8b7da8e commit 0bf0d02
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/inits_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,23 +202,31 @@ inits_game (void)
return FALSE;
}
/* load right options panel */
#ifdef __EMSCRIPTEN__
lock_surface_options();
#endif
if (!
(load_pcx_into_buffer
("graphics/right_options_panel.pcx", options_offscreen)))
{
return FALSE;
}
#ifdef __EMSCRIPTEN__
unlock_surface_options();
#endif
/* load top scores panel */
lock_surface_scores();
#ifdef __EMSCRIPTEN__
lock_surface_scores();
#endif
if (!
(load_pcx_into_buffer
("graphics/top_scores_panel.pcx", scores_offscreen)))
{
return FALSE;
}
#ifdef __EMSCRIPTEN__
unlock_surface_scores();
#endif
return TRUE;
}

Expand Down

0 comments on commit 0bf0d02

Please sign in to comment.