void GUIDrawHotSpot( gui_window *wnd, int hot_spot, gui_ord row, gui_ord indent, gui_attr attr ) { gui_text_metrics metrics; gui_coord pos; if( ( hot_spot > 0 ) && ( hot_spot <= GUINumHotSpots ) ) { GUIGetTextMetrics( wnd, &metrics ); pos.x = indent; pos.y = row * metrics.avg.y; GUIDrawTextBitmapAttr( wnd, NULL, GUIHotSpots[hot_spot - 1].size.x, GUIHotSpots[hot_spot - 1].size.y, &pos, attr, GUI_NO_COLUMN, FALSE, hot_spot ); } }
void GUIXDrawText( gui_window *wnd, const char *text, size_t length, gui_coord *pos, gui_attr attr, gui_ord extentx, bool draw_extent ) { GUIDrawTextBitmapAttr( wnd, text, length, 0, pos, attr, extentx, draw_extent, 0 ); }