diff --git a/src/main.c b/src/main.c index 1b515d2..fcb0ca9 100644 --- a/src/main.c +++ b/src/main.c @@ -4,6 +4,8 @@ #include #include #include +#include +#include #include #include "fixed.h" @@ -27,6 +29,8 @@ //#define debug //pour afficher les infos de debug +//extern uint16_t *gint_vram; + image_t *tex_index[TINDEX_S]; extern char map_test[map_w][map_h]; @@ -110,8 +114,10 @@ int main(){ prof_t frame = prof_make(); prof_enter(frame); - drect(0, 0, 395, 112, 0x9dbd); - drect(0,112, 395, 243, 0xc4c9); + //Big brain drect() + dma_memset(gint_vram, 0x9dbd9dbd, viewport_w*viewport_h); + dma_memset((void*)((uint32_t)gint_vram + viewport_w*viewport_h), + 0xc4c9c4c9, viewport_w*viewport_h); draw_walls(frame_buffer);