From 421f9113716c11b86ab781410c04daebc7c6d263 Mon Sep 17 00:00:00 2001 From: skidau Date: Fri, 8 May 2015 14:39:54 +0000 Subject: [PATCH] Removed the GBA washed colors option as it did not do anything. Removed the broken full screen resolution selection. Added some separators in the menu. Fixed a path problem in the wx CMakeLists.txt git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1407 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/wx/CMakeLists.txt | 2 +- src/wx/cmdevents.cpp | 6 ------ src/wx/guiinit.cpp | 3 --- src/wx/opts.cpp | 1 - src/wx/opts.h | 1 - src/wx/xrc/DisplayConfig.xrc | 36 ------------------------------------ src/wx/xrc/MainMenu.xrc | 28 ++++++++++++++++++---------- 7 files changed, 19 insertions(+), 58 deletions(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 9c951e0c..982cd1e3 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -74,8 +74,8 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/icons/wxvbam.xpm DESTINATION ${CMAKE_CURRE # wxrc does not support xrs files in -c output (> 10x compression) # so do it manually using slow but portable bin2c.cmake script ADD_CUSTOM_COMMAND(OUTPUT wxvbam.xrs - COMMAND wxrc ${CMAKE_CURRENT_SOURCE_DIR}/xrc/*.xrc -o wxvbam.xrs WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND wxrc ${CMAKE_CURRENT_SOURCE_DIR}/xrc/*.xrc -o wxvbam.xrs DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/xrc/*.xrc) ADD_CUSTOM_COMMAND(OUTPUT builtin-xrc.h COMMAND ${CMAKE_COMMAND} -DINFILE=wxvbam.xrs -DOUTFILE=builtin-xrc.h -DVARNAME=builtin_xrs -P ${CMAKE_CURRENT_SOURCE_DIR}/bin2c.cmake diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index 6422678a..8e130fcd 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -2228,12 +2228,6 @@ EVT_HANDLER(Printer, "Enable printer emulation") update_opts(); } -EVT_HANDLER(Color, "Emulate washed colors of LCD") -{ - GetMenuOptionBool("Color", gopts.gbcColorOption); - update_opts(); -} - EVT_HANDLER(PrintGather, "Automatically gather a full page before printing") { GetMenuOptionBool("PrintGather", gopts.print_auto_page); diff --git a/src/wx/guiinit.cpp b/src/wx/guiinit.cpp index f40a3e5b..94c655c1 100644 --- a/src/wx/guiinit.cpp +++ b/src/wx/guiinit.cpp @@ -2937,9 +2937,6 @@ bool MainFrame::BindControls() // validator just for this, and spinctrl is good enough. getsc("DefaultScale", gopts.video_scale); getsc("MaxScale", maxScale); - // fs modes should be filled in at popup time - // since they may change based on what screen is current - SafeXRCCTRL(d, "FullscreenMode"); /// Advanced getrbi("OutputSimple", gopts.render_method, RND_SIMPLE); diff --git a/src/wx/opts.cpp b/src/wx/opts.cpp index d713a3d2..13800f6a 100644 --- a/src/wx/opts.cpp +++ b/src/wx/opts.cpp @@ -149,7 +149,6 @@ opt_desc opts[] = { /// GB STROPT ("GB/BiosFile", "", wxTRANSLATE("BIOS file to use for GB, if enabled"), gopts.gb_bios), STROPT ("GB/GBCBiosFile", "", wxTRANSLATE("BIOS file to use for GBC, if enabled"), gopts.gbc_bios), - BOOLOPT("GB/LCDColor", "Color", wxTRANSLATE("Emulate washed colors of LCD"), gopts.gbcColorOption), { wxT("GB/Palette0"), "", wxTRANSLATE("The default palette, as 8 comma-separated 4-digit hex integers (rgb555).") }, { wxT("GB/Palette1"), "", wxTRANSLATE("The first user palette, as 8 comma-separated 4-digit hex integers (rgb555).") }, { wxT("GB/Palette2"), "", wxTRANSLATE("The second user palette, as 8 comma-separated 4-digit hex integers (rgb555).") }, diff --git a/src/wx/opts.h b/src/wx/opts.h index f9bf6f56..1f90cdf1 100644 --- a/src/wx/opts.h +++ b/src/wx/opts.h @@ -24,7 +24,6 @@ extern struct opts_t { /// GB wxString gb_bios; wxString gbc_bios; - bool gbcColorOption; // u16 systemGbPalette[8*3]; bool print_auto_page, print_screen_cap; wxString gb_rom_dir; diff --git a/src/wx/xrc/DisplayConfig.xrc b/src/wx/xrc/DisplayConfig.xrc index 1448b060..d4dc1707 100644 --- a/src/wx/xrc/DisplayConfig.xrc +++ b/src/wx/xrc/DisplayConfig.xrc @@ -90,42 +90,6 @@ wxEXPAND - - - - - bold - - - wxALL - 5 - - - - - - - - - - wxALL|wxALIGN_RIGHT|wxALIGN_CENTRE_VERTICAL - 5 - - - - - wxALL|wxEXPAND - 5 - - wxHORIZONTAL - - wxEXPAND - - wxVERTICAL - - wxALL|wxEXPAND - 5 - diff --git a/src/wx/xrc/MainMenu.xrc b/src/wx/xrc/MainMenu.xrc index 4474feea..70dd59bc 100644 --- a/src/wx/xrc/MainMenu.xrc +++ b/src/wx/xrc/MainMenu.xrc @@ -313,14 +313,16 @@ - - - 1 - + 1 + + + 1 + + 1 @@ -329,16 +331,13 @@ 1 - - - 1 - + - + 1 - + 1 @@ -347,10 +346,12 @@ + 1 + 1 @@ -369,6 +370,7 @@ + @@ -398,6 +400,7 @@ + 1 @@ -416,6 +419,7 @@ + 1 @@ -428,6 +432,7 @@ 1 + 1 @@ -459,6 +464,7 @@ Ctrl+F + 1 @@ -473,6 +479,7 @@ + @@ -480,6 +487,7 @@ 1 +