Win32 - PPU Viewer - Refresh value defaults to 15, refresh value stored in .cfg file.
This commit is contained in:
parent
75a04affe9
commit
db0925e13d
|
@ -1,4 +1,5 @@
|
||||||
---version 2.0.4 yet to be released---
|
---version 2.0.4 yet to be released---
|
||||||
|
21-dec-2008 - adelikat - Win32 - PPU Viewer - Refresh value default to 15, Refresh value stored in config file
|
||||||
19-dec-2008 - adelikat - Loadbackup function added, Win32 - Undo Loadstate context menu item
|
19-dec-2008 - adelikat - Loadbackup function added, Win32 - Undo Loadstate context menu item
|
||||||
19-dec-2008 - adelikat - Backup savestate is made before loading a state
|
19-dec-2008 - adelikat - Backup savestate is made before loading a state
|
||||||
18-dec-2008 - adelikat - win32 - turbo bypasses sound better if muteturbo is checked
|
18-dec-2008 - adelikat - win32 - turbo bypasses sound better if muteturbo is checked
|
||||||
|
|
|
@ -48,7 +48,7 @@ extern bool frameAdvanceLagSkip;
|
||||||
extern int ClipSidesOffset;
|
extern int ClipSidesOffset;
|
||||||
extern bool movieSubtitles;
|
extern bool movieSubtitles;
|
||||||
extern bool subtitlesOnAVI;
|
extern bool subtitlesOnAVI;
|
||||||
|
extern int PPUViewRefresh;
|
||||||
extern uint8 gNoBGFillColor;
|
extern uint8 gNoBGFillColor;
|
||||||
|
|
||||||
//window positions and sizes:
|
//window positions and sizes:
|
||||||
|
@ -213,6 +213,7 @@ static CFGSTRUCT fceuconfig[] = {
|
||||||
AC(subtitlesOnAVI),
|
AC(subtitlesOnAVI),
|
||||||
AC(bindSavestate),
|
AC(bindSavestate),
|
||||||
AC(ClipSidesOffset),
|
AC(ClipSidesOffset),
|
||||||
|
AC(PPUViewRefresh),
|
||||||
//ACS(memwLastfile[2048]),
|
//ACS(memwLastfile[2048]),
|
||||||
ENDCFGSTRUCT
|
ENDCFGSTRUCT
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,7 +34,8 @@ uint8 *pattern0,*pattern1; //pattern table bitmap arrays
|
||||||
uint8 *ppuv_palette;
|
uint8 *ppuv_palette;
|
||||||
static int pindex0=0,pindex1=0;
|
static int pindex0=0,pindex1=0;
|
||||||
int PPUViewScanline=0,PPUViewer=0;
|
int PPUViewScanline=0,PPUViewer=0;
|
||||||
int PPUViewSkip,PPUViewRefresh;
|
int PPUViewSkip;
|
||||||
|
int PPUViewRefresh = 15;
|
||||||
int mouse_x,mouse_y;
|
int mouse_x,mouse_y;
|
||||||
|
|
||||||
#define PATTERNWIDTH 128
|
#define PATTERNWIDTH 128
|
||||||
|
@ -328,7 +329,7 @@ BOOL CALLBACK PPUViewCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
case WM_HSCROLL:
|
case WM_HSCROLL:
|
||||||
if(lParam) { //refresh trackbar
|
if(lParam) { //refresh trackbar
|
||||||
PPUViewRefresh = SendDlgItemMessage(hwndDlg,CTL_PPUVIEW_TRACKBAR,TBM_GETPOS,0,0);
|
PPUViewRefresh = SendDlgItemMessage(hwndDlg,CTL_PPUVIEW_TRACKBAR,TBM_GETPOS,0,0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue