Changes to allow for auto- or selectable Internal HD controller, and some other minor changes.
This commit is contained in:
@@ -269,7 +269,7 @@ int video_timing[6][4] =
|
||||
{VIDEO_BUS, 3, 3, 4}
|
||||
};
|
||||
|
||||
void video_updatetiming()
|
||||
void video_updatetiming(void)
|
||||
{
|
||||
if (video_timing[video_speed][0] == VIDEO_ISA)
|
||||
{
|
||||
@@ -294,9 +294,11 @@ int video_res_x, video_res_y, video_bpp;
|
||||
void (*video_blit_memtoscreen_func)(int x, int y, int y1, int y2, int w, int h);
|
||||
void (*video_blit_memtoscreen_8_func)(int x, int y, int w, int h);
|
||||
|
||||
void video_init()
|
||||
|
||||
void
|
||||
video_reset(void)
|
||||
{
|
||||
pclog("Video_init %i %i\n",romset,gfxcard);
|
||||
pclog("Video_reset(rom=%i, gfx=%i)\n", romset, gfxcard);
|
||||
|
||||
#ifndef __unix
|
||||
cga_palette = 0;
|
||||
@@ -533,7 +535,8 @@ int calc_16to32(int c)
|
||||
return (b | g | r);
|
||||
}
|
||||
|
||||
void initvideo()
|
||||
void
|
||||
video_init(void)
|
||||
{
|
||||
int c, d, e;
|
||||
|
||||
@@ -604,7 +607,8 @@ void initvideo()
|
||||
blit_data.blit_thread = thread_create(blit_thread, NULL);
|
||||
}
|
||||
|
||||
void closevideo()
|
||||
void
|
||||
video_close(void)
|
||||
{
|
||||
thread_kill(blit_data.blit_thread);
|
||||
thread_destroy_event(blit_data.buffer_not_in_use);
|
||||
@@ -636,19 +640,19 @@ static void blit_thread(void *param)
|
||||
}
|
||||
}
|
||||
|
||||
void video_blit_complete()
|
||||
void video_blit_complete(void)
|
||||
{
|
||||
blit_data.buffer_in_use = 0;
|
||||
thread_set_event(blit_data.buffer_not_in_use);
|
||||
}
|
||||
|
||||
void video_wait_for_blit()
|
||||
void video_wait_for_blit(void)
|
||||
{
|
||||
while (blit_data.busy)
|
||||
thread_wait_event(blit_data.blit_complete, -1);
|
||||
thread_reset_event(blit_data.blit_complete);
|
||||
}
|
||||
void video_wait_for_buffer()
|
||||
void video_wait_for_buffer(void)
|
||||
{
|
||||
while (blit_data.buffer_in_use)
|
||||
thread_wait_event(blit_data.buffer_not_in_use, -1);
|
||||
@@ -686,27 +690,6 @@ void video_blit_memtoscreen_8(int x, int y, int w, int h)
|
||||
thread_set_event(blit_data.wake_blit_thread);
|
||||
}
|
||||
|
||||
#ifdef __unix
|
||||
void d3d_fs_take_screenshot(char *fn)
|
||||
{
|
||||
}
|
||||
|
||||
void d3d_take_screenshot(char *fn)
|
||||
{
|
||||
}
|
||||
|
||||
void ddraw_fs_take_screenshot(char *fn)
|
||||
{
|
||||
}
|
||||
|
||||
void ddraw_take_screenshot(char *fn)
|
||||
{
|
||||
}
|
||||
|
||||
void take_screenshot()
|
||||
{
|
||||
}
|
||||
#else
|
||||
time_t now;
|
||||
struct tm *info;
|
||||
wchar_t screenshot_fn_partial[2048];
|
||||
@@ -763,4 +746,3 @@ void take_screenshot(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
/* Copyright holders: Sarah Walker, Tenshi
|
||||
see COPYING for more details
|
||||
*/
|
||||
#ifdef __unix
|
||||
|
||||
#include "allegro-main.h"
|
||||
|
||||
#else
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -28,7 +23,6 @@ typedef RGB PALETTE[256];
|
||||
#define makecol(r, g, b) ((b) | ((g) << 8) | ((r) << 16))
|
||||
#define makecol32(r, g, b) ((b) | ((g) << 8) | ((r) << 16))
|
||||
|
||||
#endif
|
||||
|
||||
extern BITMAP *buffer, *buffer32;
|
||||
|
||||
@@ -92,15 +86,15 @@ extern int video_res_x, video_res_y, video_bpp;
|
||||
|
||||
extern int vid_resize;
|
||||
|
||||
void video_wait_for_blit();
|
||||
void video_wait_for_buffer();
|
||||
void video_wait_for_blit(void);
|
||||
void video_wait_for_buffer(void);
|
||||
|
||||
extern int winsizex,winsizey;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void take_screenshot();
|
||||
void take_screenshot(void);
|
||||
|
||||
void d3d_take_screenshot(wchar_t *fn);
|
||||
void d3d_fs_take_screenshot(wchar_t *fn);
|
||||
@@ -117,14 +111,14 @@ extern int video_grayscale;
|
||||
extern int video_graytype;
|
||||
|
||||
void loadfont(wchar_t *s, int format);
|
||||
void initvideo();
|
||||
void video_init();
|
||||
void closevideo();
|
||||
void video_updatetiming();
|
||||
void video_init(void);
|
||||
void video_close(void);
|
||||
void video_reset(void);
|
||||
void video_updatetiming(void);
|
||||
|
||||
void hline(BITMAP *b, int x1, int y, int x2, uint32_t col);
|
||||
void updatewindowsize(int x, int y);
|
||||
|
||||
#ifdef ENABLE_VRAM_DUMP
|
||||
void svga_dump_vram();
|
||||
void svga_dump_vram(void);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user