// doDraw //--------------------------------------------------------------------------- void CodeStatsView::doDraw(Surface &viewArea, Surface &clientArea) { bltViewBackground(viewArea); switch( display_mode ) { case _display_mode_network_stats : drawNetworkStats( clientArea ); break; case _display_mode_sorter_stats : drawSorterStats( clientArea ); break; case _display_mode_pathing_stats : drawPathingStats( clientArea ); break; case _display_mode_unit_stats : drawUnitStats( clientArea ); break; } /* char strBuf[256]; sprintf(strBuf, "Packet Size : %d", gPacketSize ); clientArea.bltString(2, INFO_AREA_Y_OFFSET - 18, strBuf, Color::white); */ View::doDraw(viewArea, clientArea); } // end CodeStatsView::doDraw
// doDraw //--------------------------------------------------------------------------- void CodeStatsView::doDraw(Surface &viewArea, Surface &clientArea) { bltViewBackground(viewArea); switch( display_mode ) { case _display_mode_network_stats : drawNetworkStats( clientArea ); break; case _display_mode_sorter_stats : drawSorterStats( clientArea ); break; case _display_mode_pathing_stats : drawPathingStats( clientArea ); break; case _display_mode_unit_stats : drawUnitStats( clientArea ); break; } View::doDraw(viewArea, clientArea); } // end CodeStatsView::doDraw