+ /* clip text at the left side of the window */
+ if (dst_x < 0)
+ {
+ dst_x += font_width;
+
+ continue;
+ }
+
+ /* clip text at the right side of the window */
+#if 1
+ if (dst_x + font_width > video.width)
+ break;
+#else
+ /* (this does not work well when trying to print text to whole screen) */
+ if ((dst_x_start < border_1 && dst_x + font_width > border_1) ||
+ (dst_x_start < border_2 && dst_x + font_width > border_2))
+ break;
+#endif
+