diff --git a/desmume/src/wx/wxMain.cpp b/desmume/src/wx/wxMain.cpp index 54aae35f3..0c47975e2 100644 --- a/desmume/src/wx/wxMain.cpp +++ b/desmume/src/wx/wxMain.cpp @@ -302,13 +302,13 @@ loop: } void mainG(int n) { - if(MainScreen.gpu->dispBG[n]) + if(CommonSettings.dispLayers[0][n]) GPU_remove(MainScreen.gpu, n); else GPU_addBack(MainScreen.gpu, n); } void subG(int n) { - if(SubScreen.gpu->dispBG[n]) + if(CommonSettings.dispLayers[1][n]) GPU_remove(SubScreen.gpu, n); else GPU_addBack(SubScreen.gpu, n);