optimize the rtgui_dc_draw_focus_rect() function