Marko Spremic 2020/0066 Test3

Files at this revision

API Documentation at this revision

Comitter:
markospremic
Date:
Sat Dec 11 15:57:15 2021 +0000
Parent:
18:3112550cc6a3
Commit message:
Marko Spremic 2020/0066 Test3

Changed in this revision

Adafruit_GFX.cpp Show annotated file Show diff for this revision Revisions of this file
Adafruit_GFX.h Show annotated file Show diff for this revision Revisions of this file
Adafruit_GFX_Config.h Show annotated file Show diff for this revision Revisions of this file
diff -r 3112550cc6a3 -r 156e65966dbf Adafruit_GFX.cpp
--- a/Adafruit_GFX.cpp	Tue Jun 23 09:49:01 2015 +0000
+++ b/Adafruit_GFX.cpp	Sat Dec 11 15:57:15 2021 +0000
@@ -452,3 +452,8 @@
             break;
     }
 }
+
+void Adafruit_GFX::resetCoordinate()
+{
+    cursor_x = 0; cursor_y = 0;
+}
diff -r 3112550cc6a3 -r 156e65966dbf Adafruit_GFX.h
--- a/Adafruit_GFX.h	Tue Jun 23 09:49:01 2015 +0000
+++ b/Adafruit_GFX.h	Sat Dec 11 15:57:15 2021 +0000
@@ -167,6 +167,8 @@
 
     /// Set the display rotation, 1, 2, 3, or 4
     void setRotation(uint8_t r);
+    ///reset coordinate
+    void resetCoordinate();
     /// Get the current rotation
     inline uint8_t getRotation(void) { rotation %= 4; return rotation; };
 
diff -r 3112550cc6a3 -r 156e65966dbf Adafruit_GFX_Config.h
--- a/Adafruit_GFX_Config.h	Tue Jun 23 09:49:01 2015 +0000
+++ b/Adafruit_GFX_Config.h	Sat Dec 11 15:57:15 2021 +0000
@@ -5,10 +5,10 @@
 #define NO_SPLASH_ADAFRUIT
 
 // Uncomment this to enable all functionality
-//#define GFX_WANT_ABSTRACTS
+#define GFX_WANT_ABSTRACTS
 
 // Uncomment this to enable only runtime font scaling, without all the rest of the Abstracts
-//#define GFX_SIZEABLE_TEXT
+#define GFX_SIZEABLE_TEXT
 
 
 #endif
\ No newline at end of file