Annotation of hatari/src/includes/vdi.h, revision 1.1.1.10

1.1       root        1: /*
1.1.1.4   root        2:   Hatari - vdi.h
                      3: 
1.1.1.10! root        4:   This file is distributed under the GNU General Public License, version 2
        !             5:   or at your option any later version. Read the file gpl.txt for details.
1.1       root        6: */
                      7: 
1.1.1.3   root        8: #ifndef HATARI_VDI_H
                      9: #define HATARI_VDI_H
1.1.1.2   root       10: 
1.1       root       11: #define MAX_VDI_PLANES  4
1.1.1.10! root       12: /* TOS needs screen width to be aligned to 128/planes and height to VDI text
        !            13:  * height (16, larger of these, is used in calculating the limits in Hatari).
        !            14:  * Max. screen size supported by EmuTOS (and TOS v3.x?) is 300kB.
        !            15:  *
        !            16:  * Below MAX_VDI_* values are reasonable limits for monochrome resolutions.
        !            17:  * 300kB limits screen size to max. resolution of 2048x1200 or 1920x1280,
        !            18:  * which allows FHD (1920×1080), WUXGA (1920x1200) and QWXGA (2048x1152)
        !            19:  * standard resolutions.
        !            20:  * 
        !            21:  * On 4-color mode, 300kB limits screen size to 1280x960 or 1200x1024
        !            22:  * which allows HD (1280x720), WXGA (1280x768) and XGA+ (1152x864)
        !            23:  * standard resolutions.
        !            24:  * 
        !            25:  * On 16-color mode, 300kB limits screen size to 1024x576 or 800x768,
        !            26:  * which fills nicely qHD (960x540), DVGA (960x640) and WSVGA (1024x600)
        !            27:  * standard resolution displays.
1.1.1.6   root       28:  */
1.1.1.10! root       29: #define MAX_VDI_BYTES 300*1024
        !            30: #define MAX_VDI_WIDTH  2048
        !            31: #define MAX_VDI_HEIGHT 1280
        !            32: /* smaller doesn't make sense even for testing */
        !            33: #define MIN_VDI_WIDTH   320
1.1.1.6   root       34: #define MIN_VDI_HEIGHT  208
1.1       root       35: 
1.1.1.2   root       36: 
                     37: enum
                     38: {
1.1.1.4   root       39:   GEMCOLOR_2,
                     40:   GEMCOLOR_4,
                     41:   GEMCOLOR_16
1.1.1.2   root       42: };
                     43: 
1.1.1.3   root       44: extern Uint32 VDI_OldPC;
1.1.1.7   root       45: extern bool bUseVDIRes, bVdiAesIntercept;
1.1.1.4   root       46: extern int VDIWidth,VDIHeight;
                     47: extern int VDIRes,VDIPlanes;
1.1       root       48: 
1.1.1.4   root       49: extern int VDI_Limit(int value, int align, int min, int max);
                     50: extern void VDI_SetResolution(int GEMColor, int WidthRequest, int HeightRequest);
1.1.1.7   root       51: extern void AES_Info(Uint32 bShowOpcodes);
                     52: extern void VDI_Info(Uint32 bShowOpcodes);
                     53: extern bool VDI_AES_Entry(void);
1.1.1.4   root       54: extern void VDI_LineA(Uint32 LineABase, Uint32 FontBase);
1.1.1.2   root       55: extern void VDI_Complete(void);
1.1.1.8   root       56: extern void VDI_Reset(void);
1.1.1.2   root       57: 
1.1.1.3   root       58: #endif  /* HATARI_VDI_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.