mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-09 08:49:18 +00:00
debugging
This commit is contained in:
parent
2273388b06
commit
12bed84629
11
display.cpp
11
display.cpp
@ -61,6 +61,11 @@ void Display::begin(colour_t bg, colour_t fg, orientation_t orient, unsigned dis
|
||||
_yoff = (_dy - dispy) / 2;
|
||||
_dx -= _xoff;
|
||||
_dy -= _yoff;
|
||||
|
||||
#if defined(DEBUGGING)
|
||||
Serial.printf("xoff %d yoff %d dx %d dy %d", _xoff, _yoff, _dx, _dy);
|
||||
Serial.println();
|
||||
#endif
|
||||
}
|
||||
|
||||
void Display::begin(colour_t bg, colour_t fg, orientation_t orient) {
|
||||
@ -102,6 +107,12 @@ void Display::begin(colour_t bg, colour_t fg, orientation_t orient) {
|
||||
_cx = canvas.getFontInfo()->width;
|
||||
_dx = canvas.getWidth();
|
||||
_dy = canvas.getHeight();
|
||||
|
||||
|
||||
#if defined(DEBUGGING)
|
||||
Serial.printf("w %d h %d", _dx, _dy);
|
||||
Serial.println();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
setColor(fg);
|
||||
|
Loading…
Reference in New Issue
Block a user