--- hatari/src/includes/vdi.h 2019/04/01 07:12:44 1.1.1.3 +++ hatari/src/includes/vdi.h 2019/04/01 07:13:46 1.1.1.4 @@ -1,38 +1,37 @@ /* - Hatari + Hatari - vdi.h + + 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. */ #ifndef HATARI_VDI_H #define HATARI_VDI_H #define MAX_VDI_WIDTH 1024 +#define MIN_VDI_WIDTH 384 #define MAX_VDI_HEIGHT 768 +#define MIN_VDI_HEIGHT 240 #define MAX_VDI_PLANES 4 -enum -{ - GEMRES_640x480, - GEMRES_800x600, - GEMRES_1024x768 -}; enum { - GEMCOLOUR_2, - GEMCOLOUR_4, - GEMCOLOUR_16 + GEMCOLOR_2, + GEMCOLOR_4, + GEMCOLOR_16 }; -extern Uint32 LineABase, FontBase; extern Uint32 VDI_OldPC; extern BOOL bUseVDIRes; -extern int VDIWidth,VDIHeight,VDIRes; -extern int VDIPlanes,VDIColours,VDICharHeight; +extern int VDIWidth,VDIHeight; +extern int VDIRes,VDIPlanes; -extern void VDI_SetResolution(int GEMRes, int GEMColour); +extern int VDI_Limit(int value, int align, int min, int max); +extern void VDI_SetResolution(int GEMColor, int WidthRequest, int HeightRequest); extern BOOL VDI(void); extern void VDI_FixDesktopInf(void); -extern void VDI_LineA(void); +extern void VDI_LineA(Uint32 LineABase, Uint32 FontBase); extern void VDI_Complete(void); #endif /* HATARI_VDI_H */