mirror of
https://github.com/jscrane/r65emu.git
synced 2025-03-10 21:30:36 +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;
|
_yoff = (_dy - dispy) / 2;
|
||||||
_dx -= _xoff;
|
_dx -= _xoff;
|
||||||
_dy -= _yoff;
|
_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) {
|
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;
|
_cx = canvas.getFontInfo()->width;
|
||||||
_dx = canvas.getWidth();
|
_dx = canvas.getWidth();
|
||||||
_dy = canvas.getHeight();
|
_dy = canvas.getHeight();
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(DEBUGGING)
|
||||||
|
Serial.printf("w %d h %d", _dx, _dy);
|
||||||
|
Serial.println();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
setColor(fg);
|
setColor(fg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user