lib/unigraphic/SSD1322.cpp

changeset 7
5cf4034ba4e0
parent 6
8cb67d7afd79
child 8
55021f3f1929
--- a/lib/unigraphic/SSD1322.cpp	Wed Sep 21 20:09:21 2016 +0200
+++ b/lib/unigraphic/SSD1322.cpp	Fri Sep 23 21:12:43 2016 +0200
@@ -377,6 +377,10 @@
 {
   unsigned char x, y;
 
+  if (to_col>0x3F)
+    to_col = 0x3F;
+  if (to_row>0x3F)
+    to_row = 0x3F;
   set_row_address(from_row, to_row);
   set_column_address(from_col, to_col);
 

mercurial