5656#include " res/qwiic_resdef.h"
5757
5858// RECT!
59- struct QwRect
60- {
59+ struct QwRect {
6160 uint16_t x;
6261 uint16_t y;
6362 uint16_t width;
@@ -91,8 +90,7 @@ extern const uint8_t byte_bits[8];
9190//
9291// Seperated out to enable easy vtable access and method dispatch short circuiting
9392
94- class _QwIDraw
95- {
93+ class _QwIDraw {
9694
9795 // Pixel Methods
9896 virtual void draw_pixel (uint8_t x, uint8_t y, uint8_t clr) {} // A subclass must implement this
@@ -125,8 +123,7 @@ typedef void (*QwDrawBitmapFn)(void *, uint8_t, uint8_t, uint8_t, uint8_t, uint8
125123typedef void (*QwDrawTextFn)(void *, uint8_t , uint8_t , const char *, uint8_t );
126124
127125// Define the vtable struct for IDraw
128- struct _QwIDraw_vtable
129- {
126+ struct _QwIDraw_vtable {
130127 QwDrawPntFn draw_pixel;
131128 QwDrawTwoPntFn draw_line;
132129 QwDrawTwoPntFn draw_line_horz;
@@ -152,14 +149,12 @@ class QwGrBufferDevice : protected _QwIDraw
152149 // Constructors
153150 QwGrBufferDevice () : _currFont{nullptr } {};
154151 QwGrBufferDevice (uint8_t width, uint8_t height) : QwGrBufferDevice(0 , 0 , width, height){};
155- QwGrBufferDevice (uint8_t x0, uint8_t y0, uint8_t width, uint8_t height)
156- {
152+ QwGrBufferDevice (uint8_t x0, uint8_t y0, uint8_t width, uint8_t height){
157153 set_viewport (x0, y0, width, height);
158154 };
159155
160156 // Buffer location on the device
161- void set_viewport (uint8_t x0, uint8_t y0, uint8_t width, uint8_t height)
162- {
157+ void set_viewport (uint8_t x0, uint8_t y0, uint8_t width, uint8_t height){
163158 _viewport.x = x0;
164159 _viewport.y = y0;
165160 _viewport.width = width;
0 commit comments