OSDN Git Service

[VM][General][WIP] Apply new (Upstream 2016-02-21) APIs to VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / fp200 / io.cpp
index ba77f68..04b91e6 100644 (file)
@@ -206,7 +206,7 @@ void IO::initialize()
        register_event(this, EVENT_CMT_READY, 1000000.0 / 300.0, true, NULL); // 300baud
        register_event(this, EVENT_CMT_CLOCK, 1000000.0 / 76800.0, true, NULL);
        
-       key_stat = emu->key_buffer();
+       key_stat = emu->get_key_buffer();
 }
 
 void IO::release()
@@ -591,7 +591,7 @@ void IO::draw_screen()
        scrntype cd = RGB_COLOR(48, 56, 16);
        scrntype cb = RGB_COLOR(160, 168, 160);
        for(int y = 0; y < 64; y++) {
-               scrntype* dst = emu->screen_buffer(y);
+               scrntype* dst = emu->get_screen_buffer(y);
                uint8* src = screen[y];
                
                for(int x = 0; x < 160; x++) {