- typo fix in memview tool;
This commit is contained in:
mtabachenko 2013-05-29 13:02:06 +00:00
parent 0b84b68b4b
commit 5aa87df570
1 changed files with 4 additions and 4 deletions

View File

@ -848,7 +848,7 @@ LRESULT MemView_ViewBoxPaint(CMemView* wnd, HWND hCtl, WPARAM wParam, LPARAM lPa
SetBkColor(mem_hdc, RGB(255, 255, 255)); SetBkColor(mem_hdc, RGB(255, 255, 255));
SetTextColor(mem_hdc, RGB(0, 0, 0)); SetTextColor(mem_hdc, RGB(0, 0, 0));
u8 endChar = IsDlgCheckboxChecked(wnd->hWnd, IDC_FULL_CHARS)?0xFF:0x7F; const u8 endChar = IsDlgCheckboxChecked(wnd->hWnd, IDC_FULL_CHARS)?0xFF:0x7F;
for(i = 0; i < 16; i++) for(i = 0; i < 16; i++)
{ {
@ -871,12 +871,12 @@ LRESULT MemView_ViewBoxPaint(CMemView* wnd, HWND hCtl, WPARAM wParam, LPARAM lPa
for(i = 0; i < sz[wnd->viewMode]; i++) for(i = 0; i < sz[wnd->viewMode]; i++)
{ {
u8 val = T1ReadByte(memory, ((line << 4) + (i+start))); u8 val = T1ReadByte(memory, ((line << 4) + (i + start)));
if((val >= 0x20) && (val <= endChar)) if((val >= 0x20) && (val <= endChar))
text[i + start] = (char)val; text[i] = (char)val;
else else
text[i + start] = '.'; text[i] = '.';
} }
TextOut(mem_hdc, curx + (fontsize.cx * start), cury, text, sz[wnd->viewMode]); TextOut(mem_hdc, curx + (fontsize.cx * start), cury, text, sz[wnd->viewMode]);