OSDN Git Service

[VM][FM7] TRY: Use openmp if enabled.
authorKyuma Ohta <whatisthis.sowhat@gmail.com>
Sun, 12 Jul 2015 19:18:12 +0000 (04:18 +0900)
committerKyuma Ohta <whatisthis.sowhat@gmail.com>
Sun, 12 Jul 2015 19:18:12 +0000 (04:18 +0900)
source/src/vm/fm7/display.cpp
source/src/vm/fm7/mb61vh010.cpp

index 519bcf6..8f869ee 100644 (file)
@@ -417,6 +417,7 @@ void DISPLAY::draw_screen()
                for(y = 0; y < 400; y += 2) {
                        p = emu->screen_buffer(y);
                        pp = p;
+                       yoff = (y / 2) * 80;
                        for(x = 0; x < 10; x++) {
                          GETVRAM_8_200L(yoff + 0, p, rgbmask);
                          p += 8;
index c5d9445..7bc2372 100644 (file)
@@ -414,7 +414,7 @@ void MB61VH010::do_line(void)
        //lastflag = put_dot(x_begin, y_begin);
        if(ycount == 0) {
                if(ax > 0) {
-                       for(; cpx_t <= x_end; cpx_t++) {
+                       for (; cpx_t <= x_end; cpx_t++) {
                                lastflag = put_dot(cpx_t, cpy_t);
                        }
                } else {
@@ -469,7 +469,7 @@ void MB61VH010::do_line(void)
                }
        } else { // (abs(ax) <= abs(ay)
                diff = (xcount  * 32768) / ycount;
-               for(; ycount >= 0; ycount--) {
+               for (; ycount >= 0; ycount--) {
                        lastflag = put_dot(cpx_t, cpy_t);
                        count += diff;
                        if(count > 16384) {
@@ -829,4 +829,5 @@ bool MB61VH010::load_state(FILEIO *state_fio)
                line_style.d = 0;
                line_style.w.l = state_fio->FgetUint16_BE();
        }
+       return true;
 }