OSDN Git Service

minor fix..
authorastoria-d <astoria-d@mail.goo.ne.jp>
Thu, 28 Mar 2013 08:24:23 +0000 (17:24 +0900)
committerastoria-d <astoria-d@mail.goo.ne.jp>
Thu, 28 Mar 2013 08:24:23 +0000 (17:24 +0900)
emulator/clock.c
emulator/ppucore/dummy-driver2.c
include/vga.h

index 64bf34c..8960ca1 100644 (file)
@@ -142,7 +142,7 @@ int init_clock(void) {
     handler_list = NULL;
 
     nano_spin_cnt = 0;
-    calibrate_clock();
+    //calibrate_clock();
 
     return TRUE;
 }
index 16303b1..514fcc4 100644 (file)
@@ -10,6 +10,7 @@
 #include "vga.h"
 #include "vram.h"
 #include "sprite.h"
+#include "clock.h"
 
 static struct rgb15 *disp_data;
 void *vga_shm_get(void);
@@ -62,6 +63,7 @@ void d1_set(int on_off) {}
 void d2_set(int on_off) {}
 void d3_set(int on_off) {}
 void clean_clock(void){}
+int register_clock_hander(clock_func_t *handler, int devide) {return 0;}
 
 /*
  * ppu test function
index 7c43d2f..3254f0e 100644 (file)
@@ -33,7 +33,7 @@ struct rgb15 {
 
 #define VGA_SHM             "vgadisp"
 #define VGA_SHM_PRJ_ID      'm'
-#define VGA_SHM_SIZE        VGA_WIDTH * VGA_HEIGHT * sizeof (struct rgb15)
+#define VGA_SHM_SIZE        (VGA_WIDTH * VGA_HEIGHT * sizeof (struct rgb15))
 
 #define VGA_REFRESH_RATE    60