Another cleanup run.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Trident TGUI9440 emulation.
|
||||
*
|
||||
* Version: @(#)vid_tgui9440.c 1.0.1 2017/10/10
|
||||
* Version: @(#)vid_tgui9440.c 1.0.2 2017/10/16
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <wchar.h>
|
||||
#include "../86box.h"
|
||||
#include "../ibm.h"
|
||||
#include "../io.h"
|
||||
#include "../mem.h"
|
||||
@@ -1029,7 +1030,7 @@ static void fifo_thread(void *param)
|
||||
tgui->blitter_busy = 1;
|
||||
while (!FIFO_EMPTY)
|
||||
{
|
||||
start_time = timer_read();
|
||||
start_time = plat_timer_read();
|
||||
fifo = &tgui->fifo[tgui->fifo_read_idx & FIFO_MASK];
|
||||
|
||||
switch (fifo->addr_type & FIFO_TYPE)
|
||||
@@ -1054,7 +1055,7 @@ static void fifo_thread(void *param)
|
||||
if (FIFO_ENTRIES > 0xe000)
|
||||
thread_set_event(tgui->fifo_not_full_event);
|
||||
|
||||
end_time = timer_read();
|
||||
end_time = plat_timer_read();
|
||||
tgui->blitter_time += end_time - start_time;
|
||||
}
|
||||
tgui->blitter_busy = 0;
|
||||
@@ -1258,7 +1259,7 @@ void tgui_add_status_info(char *s, int max_len, void *p)
|
||||
{
|
||||
tgui_t *tgui = (tgui_t *)p;
|
||||
char temps[256];
|
||||
uint64_t new_time = timer_read();
|
||||
uint64_t new_time = plat_timer_read();
|
||||
uint64_t status_diff = new_time - tgui->status_time;
|
||||
tgui->status_time = new_time;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user