mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide/Debuggers : fixed disassembly pane text size for GUI non-standard font size 12
git-svn-id: svn://ultimatepp.org/upp/trunk@4546 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
903674481e
commit
d3a80e53c0
2 changed files with 5 additions and 5 deletions
|
|
@ -36,8 +36,8 @@ void DbgDisas::Paint(Draw& w)
|
|||
if(i == ip)
|
||||
DrawHighlightImage(w, x + 2, y + (box.cy - 12) / 2, ipimg);
|
||||
x += 18;
|
||||
w.DrawText(x, y, n.code, StdFont(), ink);
|
||||
w.DrawText(x + codecx, y, n.args, StdFont(), ink);
|
||||
w.DrawText(x, y, n.code, StdFont(12), ink);
|
||||
w.DrawText(x + codecx, y, n.args, StdFont(12), ink);
|
||||
y += box.cy;
|
||||
i++;
|
||||
}
|
||||
|
|
@ -92,7 +92,7 @@ void DbgDisas::Clear()
|
|||
inst.Clear();
|
||||
taddr.Clear();
|
||||
addr.Clear();
|
||||
codecx = GetTextSize("movlmo", StdFont()).cx;
|
||||
codecx = GetTextSize("movlmo", StdFont(12)).cx;
|
||||
}
|
||||
|
||||
void DbgDisas::Add(adr_t adr, const String& code, const String& args)
|
||||
|
|
@ -107,7 +107,7 @@ void DbgDisas::Add(adr_t adr, const String& code, const String& args)
|
|||
n.args = args;
|
||||
sb.SetTotal(inst.GetCount());
|
||||
Refresh();
|
||||
int cx = GetTextSize(n.code, StdFont()).cx;
|
||||
int cx = GetTextSize(n.code, StdFont(12)).cx;
|
||||
if(cx > codecx)
|
||||
codecx = cx;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ int Gdb_MI2::FindTabsRight(void)
|
|||
|
||||
// bisect up it finds a point on last tab...
|
||||
int iTab = -1;
|
||||
int i;
|
||||
int i = 0;
|
||||
while(iTab != lastTab)
|
||||
{
|
||||
i = (i1 + i2) / 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue