Skip to content

Commit

Permalink
Try to enable more modes.
Browse files Browse the repository at this point in the history
  • Loading branch information
khval committed Dec 30, 2022
1 parent ff41521 commit 24dd2bf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
27 changes: 17 additions & 10 deletions src/gfx-amigaos/ami-win.c
Original file line number Diff line number Diff line change
Expand Up @@ -2757,16 +2757,23 @@ int DX_FillResolutions (uae_u16 *ppixel_format)

DEBUG_LOG ("Function: DX_FillResolutions\n");

if (bit_unit == 16)
picasso_vidinfo.rgbformat = RGBFB_R5G6B5;
else
picasso_vidinfo.rgbformat = RGBFB_A8R8G8B8;
// if (bit_unit == 16)
// picasso_vidinfo.rgbformat = RGBFB_R5G6B5;
// else
// picasso_vidinfo.rgbformat = RGBFB_A8R8G8B8;
// *ppixel_format = 1 << picasso_vidinfo.rgbformat;

*ppixel_format = 1 << picasso_vidinfo.rgbformat;
if (bit_unit == 16 || bit_unit == 32)
{
*ppixel_format |= RGBFF_CHUNKY;
}

*ppixel_format =0;

*ppixel_format |= 1 << RGBFB_R5G5B5;
*ppixel_format |= 1 << RGBFB_R5G5B5PC;
*ppixel_format |= 1 << RGBFB_R5G6B5;
*ppixel_format |= 1 << RGBFB_R5G6B5PC;
*ppixel_format |= 1 << RGBFB_A8R8G8B8;
*ppixel_format |= RGBFF_CHUNKY;

ppixel_format = ~0;

/* Check list of standard P96 screenmodes */

Expand Down Expand Up @@ -2803,7 +2810,7 @@ uae_u8 *gfx_lock_picasso (void)
break;

case PIXF_A8R8G8B8:
picasso_vidinfo.rgbformat = 9; // RGBFB_A8R8G8B8;
picasso_vidinfo.rgbformat = 6; // RGBFB_A8R8G8B8;
break;
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/picasso96.c
Original file line number Diff line number Diff line change
Expand Up @@ -3062,17 +3062,21 @@ void InitPicasso96 (void)
qsort (DisplayModes, mode_count, sizeof (struct PicassoResolution),
resolution_compare);

#if 0
/* Work-around for possible P96 bug. A8R8G8B8 modes have
* palette emulation issues. Tell the world we have a
* a BGRA mode instead (and we'll byte-swap all pixels output).
*/
if (picasso_vidinfo.rgbformat == RGBFB_A8R8G8B8) {

if (picasso_vidinfo.rgbformat == RGBFB_A8R8G8B8)
{
picasso_vidinfo.rgbformat = RGBFB_B8G8R8A8;
picasso96_pixel_format &= RGBFF_CHUNKY;
picasso96_pixel_format |= 1 << picasso_vidinfo.rgbformat;
need_argb32_hack = 1;
write_log ("Enabling argb32 byte-swapping for P96.\n");
}
#endif

for (i = 0; i < mode_count; i++) {
sprintf (DisplayModes[i].name, "%dx%d, %d-bit, %d Hz",
Expand Down

0 comments on commit 24dd2bf

Please sign in to comment.