From 1f57d295cb3c5b01ccbc232fbbe6bed8b29be719 Mon Sep 17 00:00:00 2001 From: CaH4e3 Date: Sat, 7 May 2011 10:47:49 +0000 Subject: [PATCH] Debugger line number calculation doesn't appear to be right anyway --- src/drivers/win/debugger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/win/debugger.cpp b/src/drivers/win/debugger.cpp index 89f7eaa4..31f68391 100644 --- a/src/drivers/win/debugger.cpp +++ b/src/drivers/win/debugger.cpp @@ -1240,7 +1240,7 @@ BOOL CALLBACK DebuggerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPara int height = rectDisassembly.bottom-rectDisassembly.top; tmp = mouse_y - 12; if(tmp > height) setString = false; - tmp /= 13; + tmp /= 12; } if(setString) @@ -1588,7 +1588,7 @@ DebugSystem::DebugSystem() { hFixedFont = CreateFont(13,8, /*Height,Width*/ 0,0, /*escapement,orientation*/ - 400,FALSE,FALSE,FALSE, /*weight, italic,, underline, strikeout*/ + FW_REGULAR,FALSE,FALSE,FALSE, /*weight, italic, underline, strikeout*/ ANSI_CHARSET,OUT_DEVICE_PRECIS,CLIP_MASK, /*charset, precision, clipping*/ DEFAULT_QUALITY, DEFAULT_PITCH, /*quality, and pitch*/ "Courier"); /*font name*/