From: K.Ohta Date: Tue, 1 Dec 2015 14:25:27 +0000 (+0900) Subject: [UI][Qt] TRY: Booting X1 , but failed. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9d8aee6f6407744f0d1e9351f77230523bb289b6;p=csp-qt%2Fcommon_source_project-fm7.git [UI][Qt] TRY: Booting X1 , but failed. --- diff --git a/source/src/qt/common/emu_thread.cpp b/source/src/qt/common/emu_thread.cpp index b310cfa67..b855f87d6 100644 --- a/source/src/qt/common/emu_thread.cpp +++ b/source/src/qt/common/emu_thread.cpp @@ -616,7 +616,7 @@ void EmuThreadClass::doWork(const QString ¶ms) if(next_time > SDL_GetTicks()) { // update window if enough time - draw_timing = true; + draw_timing = false; if(!req_draw) { no_draw_count++; if(no_draw_count > (int)(FRAMES_PER_SEC / 4)) { @@ -626,7 +626,16 @@ void EmuThreadClass::doWork(const QString ¶ms) } else { no_draw_count = 0; } +#if 1 emit sig_draw_thread(req_draw); +#else + if(req_draw) { + draw_frames = p_emu->draw_screen(); + } else { + draw_frames = 1; + } +#endif + skip_frames = 0; // sleep 1 frame priod if need @@ -636,8 +645,12 @@ void EmuThreadClass::doWork(const QString ¶ms) } } else if(++skip_frames > MAX_SKIP_FRAMES) { // update window at least once per 10 frames - draw_timing = true; + draw_timing = false; +#if 1 emit sig_draw_thread(true); +#else + draw_frames = p_emu->draw_screen(); +#endif no_draw_count = 0; skip_frames = 0; uint32_t tt = SDL_GetTicks();