add 20.12 fixed point display to mem view
This commit is contained in:
parent
cee3ce6bad
commit
5d5d6fbf91
|
@ -390,6 +390,8 @@ LRESULT MemView_ViewBoxPaint(CMemView* wnd, HWND hCtl, WPARAM wParam, LPARAM lPa
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
{
|
{
|
||||||
|
SetDlgItemText(wnd->hWnd,IDC_2012,"");
|
||||||
|
|
||||||
curx += (fontsize.cx * 2);
|
curx += (fontsize.cx * 2);
|
||||||
for(i = 0; i < 16; i++)
|
for(i = 0; i < 16; i++)
|
||||||
{
|
{
|
||||||
|
@ -422,6 +424,8 @@ LRESULT MemView_ViewBoxPaint(CMemView* wnd, HWND hCtl, WPARAM wParam, LPARAM lPa
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
|
SetDlgItemText(wnd->hWnd,IDC_2012,"");
|
||||||
|
|
||||||
curx += (fontsize.cx * 6);
|
curx += (fontsize.cx * 6);
|
||||||
for(i = 0; i < 16; i += 2)
|
for(i = 0; i < 16; i += 2)
|
||||||
{
|
{
|
||||||
|
@ -456,6 +460,12 @@ LRESULT MemView_ViewBoxPaint(CMemView* wnd, HWND hCtl, WPARAM wParam, LPARAM lPa
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
|
u8 smallbuf[4];
|
||||||
|
MMU_DumpMemBlock(wnd->cpu, wnd->selAddress, 4, smallbuf);
|
||||||
|
char textbuf[32];
|
||||||
|
sprintf(textbuf,"%f",((s32)T1ReadLong(smallbuf,0))/4096.0f);
|
||||||
|
SetDlgItemText(wnd->hWnd,IDC_2012,textbuf);
|
||||||
|
|
||||||
curx += (fontsize.cx * 8);
|
curx += (fontsize.cx * 8);
|
||||||
for(i = 0; i < 16; i += 4)
|
for(i = 0; i < 16; i += 4)
|
||||||
{
|
{
|
||||||
|
@ -604,7 +614,6 @@ LRESULT CALLBACK MemView_ViewBoxProc(HWND hCtl, UINT uMsg, WPARAM wParam, LPARAM
|
||||||
col = ((x - (fontsize.cx * 8)) / (fontsize.cx * (8+1)) * 4);
|
col = ((x - (fontsize.cx * 8)) / (fontsize.cx * (8+1)) * 4);
|
||||||
|
|
||||||
wnd->sel = TRUE;
|
wnd->sel = TRUE;
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -612,6 +621,7 @@ LRESULT CALLBACK MemView_ViewBoxProc(HWND hCtl, UINT uMsg, WPARAM wParam, LPARAM
|
||||||
wnd->selAddress = (wnd->address + (line << 4) + col);
|
wnd->selAddress = (wnd->address + (line << 4) + col);
|
||||||
wnd->selPart = 0;
|
wnd->selPart = 0;
|
||||||
wnd->selNewVal = 0x00000000;
|
wnd->selNewVal = 0x00000000;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SelectObject(hdc, font);
|
SelectObject(hdc, font);
|
||||||
|
|
|
@ -386,6 +386,8 @@
|
||||||
#define IDC_RFILE 1038
|
#define IDC_RFILE 1038
|
||||||
#define IDC_EXPORT 1038
|
#define IDC_EXPORT 1038
|
||||||
#define IDC_RFOLDER 1039
|
#define IDC_RFOLDER 1039
|
||||||
|
#define IDC_STATIC2 1039
|
||||||
|
#define IDC_2012 1039
|
||||||
#define IDC_BBROWSE2 1040
|
#define IDC_BBROWSE2 1040
|
||||||
#define IDC_PATHDESMUME 1041
|
#define IDC_PATHDESMUME 1041
|
||||||
#define IDC_BRESTART 1042
|
#define IDC_BRESTART 1042
|
||||||
|
@ -770,8 +772,8 @@
|
||||||
#define ID_LABEL_HK51 4515
|
#define ID_LABEL_HK51 4515
|
||||||
#define ID_LABEL_HK52 4516
|
#define ID_LABEL_HK52 4516
|
||||||
#define ID_LABEL_HK53 4517
|
#define ID_LABEL_HK53 4517
|
||||||
#define ID_LABEL_HK54 4519
|
|
||||||
#define ID_LABEL_HK13b 4518
|
#define ID_LABEL_HK13b 4518
|
||||||
|
#define ID_LABEL_HK54 4519
|
||||||
#define IDD_MICROPHONE 5000
|
#define IDD_MICROPHONE 5000
|
||||||
#define IDM_MICROPHONESETTINGS 5001
|
#define IDM_MICROPHONESETTINGS 5001
|
||||||
#define IDC_MICSAMPLEBROWSE 5003
|
#define IDC_MICSAMPLEBROWSE 5003
|
||||||
|
@ -781,12 +783,8 @@
|
||||||
#define IDC_USENOISE 5010
|
#define IDC_USENOISE 5010
|
||||||
#define IDC_CPU 6000
|
#define IDC_CPU 6000
|
||||||
#define IDC_IOREG 6001
|
#define IDC_IOREG 6001
|
||||||
|
#define ID_LABEL_ZELDA_SHADOW_DEPTH_HACK 9000
|
||||||
//ZELDA SHADOW HACK
|
#define IDC_ZELDA_SHADOW_DEPTH_HACK 9001
|
||||||
#define ID_LABEL_ZELDA_SHADOW_DEPTH_HACK 9000
|
|
||||||
#define IDC_ZELDA_SHADOW_DEPTH_HACK 9001
|
|
||||||
|
|
||||||
|
|
||||||
#define IDD_CHEAT_ADD_XX_CODE 10005
|
#define IDD_CHEAT_ADD_XX_CODE 10005
|
||||||
#define IDD_GBASLOT_GUITARGRIP 10009
|
#define IDD_GBASLOT_GUITARGRIP 10009
|
||||||
#define IDD_GBASLOT_PIANO 10010
|
#define IDD_GBASLOT_PIANO 10010
|
||||||
|
@ -954,7 +952,7 @@
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 123
|
#define _APS_NEXT_RESOURCE_VALUE 123
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40085
|
#define _APS_NEXT_COMMAND_VALUE 40085
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1039
|
#define _APS_NEXT_CONTROL_VALUE 1040
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue