- X11FillRectangle(window, 0, 0, video.width, video.height, BLACK_PIXEL);
- else
- X11CopyArea(bitmap_cross != NULL ? bitmap_cross : backbuffer, window,
- 0, 0, video.width, video.height, 0, 0, BLIT_OPAQUE);
+ X11FillRectangle(backbuffer, x, y, width, height, BLACK_PIXEL);
+
+ if (draw_border_function != NULL)
+ draw_border_function();
+
+ X11CopyArea(backbuffer, window, x, y, width, height, x, y, BLIT_OPAQUE);