Highlight stall address

This commit is contained in:
Kingcom 2013-09-26 10:24:41 +02:00
parent 98f4273dcc
commit 124b11f29d
2 changed files with 4 additions and 1 deletions

View file

@ -36,6 +36,8 @@ CtrlDisplayListView::CtrlDisplayListView(HWND _wnd)
font = CreateFont(rowHeight-2,charWidth,0,0,FW_DONTCARE,FALSE,FALSE,FALSE,DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH,
L"Lucida Console");
boldfont = CreateFont(rowHeight-2,charWidth,0,0,FW_DEMIBOLD,FALSE,FALSE,FALSE,DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH,
L"Lucida Console");
pixelPositions.addressStart = 16;
pixelPositions.opcodeStart = pixelPositions.addressStart + 19*charWidth;
@ -157,7 +159,6 @@ void CtrlDisplayListView::onPaint(WPARAM wParam, LPARAM lParam)
COLORREF backgroundColor = 0xFFFFFF;
COLORREF textColor = 0x000000;
if (address == curAddress)
{
if (hasFocus)
@ -195,6 +196,7 @@ void CtrlDisplayListView::onPaint(WPARAM wParam, LPARAM lParam)
}
const char* opcode = op.desc.c_str();
SelectObject(hdc,address == list.stall ? boldfont : font);
TextOutA(hdc,pixelPositions.opcodeStart,rowY1+2,opcode,(int)strlen(opcode));
SelectObject(hdc,font);
}