diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-05 05:44:55 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-05 05:44:55 +0000 |
| commit | fb3257e40a998d0a10c0219c159390a600c43e7c (patch) | |
| tree | f2b07d8fbed5f731484d312994c82cf6c7ea2ddc | |
| parent | 462adb75586b96728d66698bb20a934f38dd674d (diff) | |
| download | pcsxr-fb3257e40a998d0a10c0219c159390a600c43e7c.tar.gz | |
Show 0x7f as dots.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@47358 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | gui/DebugMemory.c | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ +May 5, 2010 Wei Mingzhi <whistler_wmz@users.sf.net> + + * gui/DebugMemory.c: Show 0x7f as dots. + May 2, 2010 edgbla <edgbla@yandex.ru> * libpcsxcore/psxcounters.h: Root counters code was written from scratch. diff --git a/gui/DebugMemory.c b/gui/DebugMemory.c index 00fa5395..e001057b 100644 --- a/gui/DebugMemory.c +++ b/gui/DebugMemory.c @@ -63,7 +63,8 @@ static void UpdateMemViewDlg() { for (i = 0; i < 16; i++) { buftext[i] = psxMs8(start + i); sprintf(bufdata[i], "%.2X", (u8)buftext[i]); - if ((s8)buftext[i] < 32) buftext[i] = '.'; + if ((u8)buftext[i] < 32 || (u8)buftext[i] >= 127) + buftext[i] = '.'; } gtk_list_store_append(store, &iter); |
