mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2026-01-02 04:29:19 +11:00
Show score and moves
This commit is contained in:
parent
4ea5c7147e
commit
1a3635fc9a
5 changed files with 55 additions and 35 deletions
|
|
@ -25,7 +25,6 @@ static uint8_t *back_buf = (uint8_t*)DISPLAY_PAGE_2;
|
|||
// Every square is 35x35 pixels
|
||||
|
||||
void draw_field_borders_on_buffer(uint8_t brd, uint8_t* buf);
|
||||
void swap_display_buffers(void);
|
||||
|
||||
void ddraw_field_borders_on_buffer(uint8_t brd) {
|
||||
draw_field_borders_on_buffer(brd, front_buf);
|
||||
|
|
@ -97,9 +96,6 @@ void draw_tiles(void) {
|
|||
|
||||
// Re-draw the borders, to restore the correct width
|
||||
draw_field_borders_on_buffer(0x0F, back_buf);
|
||||
|
||||
// And finally swap the buffer to show the update
|
||||
swap_display_buffers();
|
||||
}
|
||||
|
||||
void swap_display_buffers(void) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue