Skip to content

Commit

Permalink
Merge pull request hrydgard#968 from sum2012/patch2
Browse files Browse the repository at this point in the history
Add UI of windows of using Media Engine
  • Loading branch information
hrydgard committed Mar 12, 2013
2 parents 671818e + 15e6fda commit a3ae8d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Windows/WndMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,11 @@ namespace MainWindow
UpdateMenus();
break;

case ID_OPTIONS_USEMEDIAENGINE:
g_Config.bUseMediaEngine = !g_Config.bUseMediaEngine;
UpdateMenus();
break;

case ID_FILE_EXIT:
DestroyWindow(hWnd);
break;
Expand Down Expand Up @@ -685,6 +690,7 @@ namespace MainWindow
CHECKITEM(ID_OPTIONS_VERTEXCACHE, g_Config.bVertexCache);
CHECKITEM(ID_OPTIONS_SHOWFPS, g_Config.bShowFPSCounter);
CHECKITEM(ID_OPTIONS_FRAMESKIP, g_Config.iFrameSkip != 0);
CHECKITEM(ID_OPTIONS_USEMEDIAENGINE, g_Config.bUseMediaEngine);

UINT enable = !Core_IsStepping() ? MF_GRAYED : MF_ENABLED;
EnableMenuItem(menu,ID_EMULATION_RUN, g_State.bEmuThreadStarted ? enable : MF_GRAYED);
Expand Down
Binary file modified Windows/ppsspp.rc
Binary file not shown.
1 change: 1 addition & 0 deletions Windows/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@
#define ID_OPTIONS_STRETCHDISPLAY 40138
#define ID_OPTIONS_FRAMESKIP 40139
#define IDC_MEMCHECK 40140
#define ID_OPTIONS_USEMEDIAENGINE 40141
#define IDC_STATIC -1

// Next default values for new objects
Expand Down

0 comments on commit a3ae8d3

Please sign in to comment.