From fb3257e40a998d0a10c0219c159390a600c43e7c Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Wed, 5 May 2010 05:44:55 +0000 Subject: Show 0x7f as dots. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@47358 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- gui/DebugMemory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui/DebugMemory.c') 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); -- cgit v1.2.3