mirror of
https://github.com/usatiuk/cardboy.git
synced 2025-10-28 15:17:48 +01:00
Compare commits
7 Commits
d1a2a65c1b
...
e389a776be
| Author | SHA1 | Date | |
|---|---|---|---|
| e389a776be | |||
| 8b8d9d3a55 | |||
| 126d377836 | |||
| 3f8d90c18a | |||
| c439aecd03 | |||
| cd72c2d7df | |||
| 589c598b01 |
@@ -19,22 +19,30 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool get_pixel(int x, int y) {
|
bool get_pixel(int x, int y) {
|
||||||
// if (x < 0 || x >= DISP_WIDTH || y < 0 || y >= DISP_HEIGHT)
|
if (x < 0 || x >= DISP_WIDTH || y < 0 || y >= DISP_HEIGHT)
|
||||||
// assert(false);
|
assert(false);
|
||||||
|
assert(false); // Not implemented
|
||||||
return true;
|
return true;
|
||||||
// return disp_frame[y][x];
|
// return disp_frame[y][x];
|
||||||
}
|
}
|
||||||
void reset_pixel(int x, int y) {
|
void reset_pixel(int x, int y) {
|
||||||
// if (x < 0 || x >= DISP_WIDTH || y < 0 || y >= DISP_HEIGHT)
|
if (x < 0 || x >= DISP_WIDTH || y < 0 || y >= DISP_HEIGHT)
|
||||||
// assert(false);
|
assert(false);
|
||||||
SMD::get().set_pixel(x, y, false);
|
SMD::get().set_pixel(x, y, false);
|
||||||
}
|
}
|
||||||
void set_pixel(int x, int y) {
|
void set_pixel(int x, int y) {
|
||||||
// if (x < 0 || x >= DISP_WIDTH || y < 0 || y >= DISP_HEIGHT)
|
if (x < 0 || x >= DISP_WIDTH || y < 0 || y >= DISP_HEIGHT)
|
||||||
// assert(false);
|
assert(false);
|
||||||
//
|
|
||||||
SMD::get().set_pixel(x, y, true);
|
SMD::get().set_pixel(x, y, true);
|
||||||
}
|
}
|
||||||
|
void set_pixel(int x, int y, bool on) {
|
||||||
|
if (on) {
|
||||||
|
set_pixel(x, y);
|
||||||
|
} else {
|
||||||
|
reset_pixel(x, y);
|
||||||
|
}
|
||||||
|
}
|
||||||
void draw_to_display();
|
void draw_to_display();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user