--- frontvm/hardware/screen.c 2018/04/24 17:57:15 1.1.1.1 +++ frontvm/hardware/screen.c 2018/04/24 17:57:43 1.1.1.2 @@ -3,35 +3,22 @@ This file is distributed under the GNU Public License, version 2 or at your option any later version. Read the file gpl.txt for details. - - This code converts a 1/2/4 plane ST format screen to either 8 or 16-bit PC - format. An awful lost of processing is needed to do this conversion - we - cannot simply change palettes on interrupts as it is possible with DOS. - The main code processes the palette/resolution mask tables to find exactly - which lines need to updating and the conversion routines themselves only - update 16-pixel blocks which differ from the previous frame - this gives a - large performance increase. - Each conversion routine can convert any part of the source ST screen (which - includes the overscan border, usually set to colour zero) so they can be used - for both window and full-screen mode. - Note that in Hi-Resolution we have no overscan and just two colors so we can - optimise things further. Also when running in maximum speed we make sure we - only convert the screen every 50 times a second - inbetween frames are not - processed. */ #include #include "main.h" #include "configuration.h" -#include "m68000.h" +#include "../m68000.h" #include "memAlloc.h" #include "misc.h" #include "screen.h" #include "screenConvert.h" -#include "video.h" #include "scalebit.h" +unsigned long VideoBase; /* Base address in ST Ram for screen(read on each VBL) */ +unsigned char *VideoRaster; /* Pointer to Video raster, after VideoBase in PC address space. Use to copy data on HBL */ + int len_main_palette; unsigned short MainPalette[256]; unsigned short CtrlPalette[16];