Browse Source

fix cold start video capture centering depending on 720/800 mode

tags/1.3c
mntmn 1 month ago
parent
commit
d9f345146f
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      ZZ9000_proto.sdk/ZZ9000Test/src/main.c

+ 7
- 1
ZZ9000_proto.sdk/ZZ9000Test/src/main.c View File

@@ -674,12 +674,18 @@ void video_mode_init(int mode, int scalemode, int colormode) {
//static int video_mode = ZZVMODE_720x576|2<<12|MNTVA_COLOR_32BIT<<8;
//static int default_pan_offset = 0x00e00000;

// default to more compatible, 60hz mode
// default to more compatible 60hz mode
static int videocap_video_mode = ZZVMODE_800x600;
static int video_mode = ZZVMODE_800x600|2<<12|MNTVA_COLOR_32BIT<<8;
static int default_pan_offset = 0x00e00bd0;

void handle_amiga_reset() {
if (videocap_video_mode == ZZVMODE_800x600) {
default_pan_offset = 0x00e00bd0;
} else {
default_pan_offset = 0x00e00000;
}

framebuffer_pan_offset = default_pan_offset;
fb_fill(framebuffer_pan_offset/4);


Loading…
Cancel
Save