From e7236deb11c630d5d70fa7f0c7122d6eb2cd548c Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 5 Feb 2022 13:54:30 +0200 Subject: [PATCH] Fixes to OAM viewer --- Cocoa/Document.m | 4 ++-- Cocoa/Document.xib | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cocoa/Document.m b/Cocoa/Document.m index 80da097..37000e0 100644 --- a/Cocoa/Document.m +++ b/Cocoa/Document.m @@ -1870,9 +1870,9 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) height:oamHeight scale:16.0/oamHeight]; case 1: - return @((unsigned)oamInfo[row].x - 8); + return @((signed)((unsigned)oamInfo[row].x - 8)); case 2: - return @((unsigned)oamInfo[row].y - 16); + return @((signed)((unsigned)oamInfo[row].y - 16)); case 3: return [NSString stringWithFormat:@"$%02x", oamInfo[row].tile]; case 4: diff --git a/Cocoa/Document.xib b/Cocoa/Document.xib index 4c98007..2787aa3 100644 --- a/Cocoa/Document.xib +++ b/Cocoa/Document.xib @@ -536,7 +536,7 @@ - +