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

Method drawCommentLine

src/drivers/Qt/ConsoleDebugger.cpp:6596–6612  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

6594}
6595//----------------------------------------------------------------------------
6596void QAsmView::drawCommentLine( QPainter *painter, int x, int y, const char *txt )
6597{
6598 int i=0;
6599 char c[2];
6600
6601 c[0] = 0; c[1] = 0;
6602
6603 // Comment Text
6604 painter->setPen( commentColor );
6605
6606 while ( (txt[i] != 0) )
6607 {
6608 c[0] = txt[i];
6609 painter->drawText( x, y, tr(c) );
6610 i++; x += pxCharWidth;
6611 }
6612}
6613//----------------------------------------------------------------------------
6614void QAsmView::paintEvent(QPaintEvent *event)
6615{

Callers

nothing calls this directly

Calls 2

trFunction · 0.50
drawTextMethod · 0.45

Tested by

no test coverage detected