mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 09:58:19 -07:00
fix ptimer
This commit is contained in:
@@ -934,17 +934,6 @@ void* nv3_init(const device_t *info)
|
||||
|
||||
nv_log("NV3: Initialising timers...\n");
|
||||
|
||||
/*
|
||||
// These only get turned on when the requisite registers are twiddled
|
||||
timer_add(&nv3->nvbase.pixel_clock_timer, nv3_pramdac_pixel_clock_poll, nv3, false);
|
||||
nv_log("NV3: Pixel clock OK. Will be started when the VBIOS tells us to start\n");
|
||||
|
||||
timer_add(&nv3->nvbase.memory_clock_timer, nv3_pramdac_memory_clock_poll, nv3, false);
|
||||
nv_log("NV3: Memory clock OK. Will be started when the VBIOS tells us to start\n");
|
||||
*/
|
||||
|
||||
|
||||
|
||||
return nv3;
|
||||
}
|
||||
|
||||
|
||||
@@ -62,8 +62,6 @@ void nv3_pramdac_memory_clock_poll()
|
||||
|
||||
// Let's hope qeeg was right here.
|
||||
nv3_ptimer_tick();
|
||||
|
||||
//timer_on_auto(&nv3_poll->nvbase.memory_clock_timer, nv3_poll->nvbase.memory_clock_period);
|
||||
}
|
||||
|
||||
// Gets the vram clock register.
|
||||
@@ -129,7 +127,7 @@ void nv3_pramdac_set_vram_clock()
|
||||
// Create and start if it it's not running.
|
||||
if (!nv3->nvbase.memory_clock_timer)
|
||||
{
|
||||
nv3->nvbase.memory_clock_timer = rivatimer_create(time, nv3_pramdac_pixel_clock_poll);
|
||||
nv3->nvbase.memory_clock_timer = rivatimer_create(time, nv3_pramdac_memory_clock_poll);
|
||||
rivatimer_start(nv3->nvbase.memory_clock_timer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user