Skip to content

Commit

Permalink
oops, var scope fixes for VS2008
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Jan 22, 2015
1 parent 2d9a67e commit 5ee436a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/sdlmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,7 @@ static void erasemapperfile() {

void SetNumLock(void) {
#ifdef WIN32
if (opt_disable_numlock_check)
if (control->opt_disable_numlock_check)
return;

// Simulate a key press
Expand Down Expand Up @@ -3689,7 +3689,7 @@ int main(int argc, char* argv[]) {
change_output(4);
GFX_SetIcon();
SDL_Prepare();
if (menu.gui && !opt_nomenu) {
if (menu.gui && !control->opt_nomenu) {
SetMenu(GetHWND(), LoadMenu(GetModuleHandle(NULL),MAKEINTRESOURCE(IDR_MENU)));
DrawMenuBar(GetHWND());
}
Expand All @@ -3709,7 +3709,7 @@ int main(int argc, char* argv[]) {
change_output(1);
GFX_SetIcon();
SDL_Prepare();
if (menu.gui && !opt_nomenu) {
if (menu.gui && !control->opt_nomenu) {
SetMenu(GetHWND(), LoadMenu(GetModuleHandle(NULL),MAKEINTRESOURCE(IDR_MENU)));
DrawMenuBar(GetHWND());
}
Expand Down

0 comments on commit 5ee436a

Please sign in to comment.