\r
#include "gp2x.h"\r
#include "usbjoy.h"\r
-#include "asmutils.h"\r
+#include "../common/arm_utils.h"\r
\r
volatile unsigned short *gp2x_memregs;\r
//static\r
}\r
\r
\r
+void gp2x_video_flush_cache(void)\r
+{\r
+ // since we are using the mmu hack, we must flush the cache first\r
+ // (the params are most likely wrong, but they seem to work somehow)\r
+ //flushcache(addr, addr + 320*240*2, 0);\r
+ flushcache(gp2x_screen, (char *)gp2x_screen + 320*240*2, 0);\r
+}\r
+\r
+\r
void gp2x_memcpy_buffers(int buffers, void *data, int offset, int len)\r
{\r
char *dst;\r
\r
void gp2x_pd_clone_buffer2(void)\r
{\r
- memcpy(gp2x_screen, gp2x_screens[2], 320*240);\r
- memset(gp2x_screen, 0xe0, 320*8);\r
- memset(gp2x_screen + 320*232, 0xe0, 320*8);\r
+ memcpy(gp2x_screen, gp2x_screens[2], 320*240*2);\r
}\r
\r
\r