diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 36 |
1 files changed, 4 insertions, 32 deletions
@@ -6,6 +6,7 @@ #include "keyb.h" #include "vga.h" +#include "text.h" #include "data.h" /* disable paging because our int handlers are written in C */ @@ -34,42 +35,13 @@ int main(int argc, char *argv[]) blit_erase(0); wait_vsync(); - blit_update(); - - uint8_t bg[24 * 24] = { 0 }; - Rect dst = { 10, 10, 24, 24 }; - int8_t ix = 1, iy = 1; - uint8_t c = 0; - - while (!keys[KEY_ESC]) - { - // erase - blit(bg, &dst); - dst.x += ix; - dst.y += iy; + put_text(10, 10, "TESTING! 1234567890* ()^_"); - if (dst.x >= 320 - 24 || dst.x == 0) - { - ix *= -1; - c = (c + 1) % 15; - blit_erase(c); - memset(bg, c, 24 * 24); - } - if (dst.y >= 200 - 24 || dst.y == 0) - { - iy *= -1; - c = (c + 1) % 15; - blit_erase(c); - memset(bg, c, 24 * 24); - } - - // draw - blit(binary_sprites_start, &dst); + blit_update(); + while (!keys[KEY_ESC]) wait_vsync(); - blit_update(); - } set_mode(3); close_framebuffer(); |