Changes since v0.7 : - Major CPU reorganisation. This has possibly broken some stuff, though I fixed all the regressions I could find - Lazy flags. This brought 10% speed improvement at one point, but that's probably been lost now - 430 VX chipset emulation - IDT Winchip emulation (currently sans MMX). Timing is probably wrong - Fixed a few FPU bugs - Timer reorganisation - Sound reorganisation - Other general reorganisation - AdLib Gold emulation - Windows Sound System emulation - Pro Audio Spectrum 16 emulation. This currently works with most DOS stuff, but not in Windows - Major improvements to GUS emulation. Has the downside that it now conflicts with SB emulation, so probably best to not enable both simultaneously - New graphics cards : - ATI-18800 (VGA Edge-16) - ATI-28800 (VGA Charger) - ATI Mach64GX (Graphics Pro Turbo). Quite a few features missing, but Windows doesn't seem to use half the features of this card - Cirrus Logic CL-GD5429. Blitter is a bit broken - Oak OTI-067 - S3 Trio64 (Number Nine 9FX) - S3 Virge. Only framebuffer stuff at the minute, Windows won't recognise the card - Trident TGUI-9440 - VGA. Doesn't work yet - Beginnings of 3DFX emulation, however this is in extremely early stages and doesn't do anything useful - Fixed DMA bug stopping floppy drives working in Windows 3.x - Fixed some other stuff probably - Broke some other stuff probably as well
51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "video.h"
|
|
|
|
BITMAP *screen;
|
|
|
|
void hline(BITMAP *b, int x1, int y, int x2, uint32_t col)
|
|
{
|
|
if (y < 0 || y >= buffer->h)
|
|
return;
|
|
|
|
if (b == buffer)
|
|
memset(&b->line[y][x1], col, x2 - x1);
|
|
else
|
|
memset(&((uint32_t *)b->line[y])[x1], col, (x2 - x1) * 4);
|
|
}
|
|
|
|
void blit(BITMAP *src, BITMAP *dst, int x1, int y1, int x2, int y2, int xs, int ys)
|
|
{
|
|
}
|
|
|
|
void stretch_blit(BITMAP *src, BITMAP *dst, int x1, int y1, int xs1, int ys1, int x2, int y2, int xs2, int ys2)
|
|
{
|
|
}
|
|
|
|
void rectfill(BITMAP *b, int x1, int y1, int x2, int y2, uint32_t col)
|
|
{
|
|
}
|
|
|
|
void set_palette(PALETTE p)
|
|
{
|
|
}
|
|
|
|
void destroy_bitmap(BITMAP *b)
|
|
{
|
|
}
|
|
|
|
BITMAP *create_bitmap(int x, int y)
|
|
{
|
|
BITMAP *b = malloc(sizeof(BITMAP) + (y * sizeof(uint8_t *)));
|
|
int c;
|
|
b->dat = malloc(x * y * 4);
|
|
for (c = 0; c < y; c++)
|
|
{
|
|
b->line[c] = b->dat + (c * x * 4);
|
|
}
|
|
b->w = x;
|
|
b->h = y;
|
|
return b;
|
|
}
|