MCPcopy Create free account
hub / github.com/TASEmulators/fceux / drawLabelLine

Method drawLabelLine

src/drivers/Qt/ConsoleDebugger.cpp:6570–6594  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

6568}
6569//----------------------------------------------------------------------------
6570void QAsmView::drawLabelLine( QPainter *painter, int x, int y, const char *txt )
6571{
6572 int i=0;
6573 char c[2];
6574
6575 c[0] = 0; c[1] = 0;
6576
6577 // Label Text
6578 painter->setPen( this->palette().color(QPalette::WindowText));
6579
6580 while ( (txt[i] != 0) )
6581 {
6582 if ( isalnum(txt[i]) || (txt[i] == '_') )
6583 {
6584 painter->setPen( labelColor );
6585 }
6586 else
6587 {
6588 painter->setPen( this->palette().color(QPalette::WindowText));
6589 }
6590 c[0] = txt[i];
6591 painter->drawText( x, y, tr(c) );
6592 i++; x += pxCharWidth;
6593 }
6594}
6595//----------------------------------------------------------------------------
6596void QAsmView::drawCommentLine( QPainter *painter, int x, int y, const char *txt )
6597{

Callers

nothing calls this directly

Calls 2

trFunction · 0.50
drawTextMethod · 0.45

Tested by

no test coverage detected