--- nono/vm/videoctlr.cpp 2026/04/29 17:05:50 1.1.1.13 +++ nono/vm/videoctlr.cpp 2026/04/29 17:06:00 1.1.1.15 @@ -60,7 +60,7 @@ VideoCtlrDevice::Init() { gvram = GetGVRAMDevice(); planevram = GetPlaneVRAMDevice(); - renderer = GetRenderer(); + renderer = GetVideoRenderer(); uimessage = gMainApp.GetUIMessage(); auto evman = GetEventManager(); @@ -179,7 +179,7 @@ VideoCtlrDevice::Poke1(uint32 addr, uint // モニタ更新の下請け。CRTC から呼ばれる。 int -VideoCtlrDevice::MonitorUpdate(TextScreen& screen, int y, uint32 crtc_r20) +VideoCtlrDevice::MonitorScreen(TextScreen& screen, int y, uint32 crtc_r20) { std::array tmp = reg; @@ -443,7 +443,7 @@ VideoCtlrDevice::ContrastCallback(Event // 下がる時は (initial - target) * exp(-t / RC) // 上がる時は (target - initial) * (1 - exp(-t / RC)) uint64 now = scheduler->GetVirtTime(); - float t = (float)(now - contrast_time0) / 1e9; + float t = (float)(now - contrast_time0) / 1_sec; float e = std::exp(-t / RC); float n; if (initial_contrast > target_contrast) { @@ -489,7 +489,7 @@ VideoCtlrDevice::MakePalette() } // 画面の作成。CRTC から VDisp のタイミングで呼ばれる。 -// Renderer に作画指示を出すかどうかを決める。 +// VideoRenderer に作画指示を出すかどうかを決める。 void VideoCtlrDevice::VDisp() { @@ -648,9 +648,9 @@ VideoCtlrDevice::RenderContrast(BitmapRG #if defined(PERFCONT) sw.Stop(); - perf_total += sw.Elapsed(); + perf_total += sw.Elapsed_nsec(); if (++perf_count % 100 == 0) { - printf("%" PRIu64 " usec\n", perf_total / perf_count / 1000); + printf("%" PRIu64 " usec\n", nsec_to_usec(perf_total) / perf_count); } #endif }