mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-23 04:33:24 +00:00
- Picasso 96 is given preference over CyberGfx because of P96's CyberGfx
emulation
This commit is contained in:
parent
b5b6684ff9
commit
c03dc99556
@ -1248,19 +1248,19 @@ static void screen_mode_req(struct Window *win, struct LayoutHandle *h)
|
||||
|
||||
ULONG id;
|
||||
|
||||
if (CyberGfxBase) {
|
||||
if (P96Base) {
|
||||
id = p96RequestModeIDTags(
|
||||
P96MA_MinDepth, 8,
|
||||
P96MA_FormatsAllowed, RGBFF_CLUT | RGBFF_R5G5B5 | RGBFF_A8R8G8B8,
|
||||
TAG_END
|
||||
);
|
||||
} else {
|
||||
UWORD model_array[] = {PIXFMT_LUT8, PIXFMT_RGB16, PIXFMT_ARGB32, 0, ~0};
|
||||
id = (ULONG) CModeRequestTags(NULL,
|
||||
CYBRMREQ_MinDepth, 8,
|
||||
CYBRMREQ_CModelArray, (ULONG)model_array,
|
||||
TAG_END
|
||||
);
|
||||
} else {
|
||||
id = p96RequestModeIDTags(
|
||||
P96MA_MinDepth, 8,
|
||||
P96MA_FormatsAllowed, RGBFF_CLUT | RGBFF_R5G5B5 | RGBFF_A8R8G8B8,
|
||||
TAG_END
|
||||
);
|
||||
}
|
||||
LT_UnlockWindow(win);
|
||||
|
||||
|
@ -193,10 +193,10 @@ static bool init_screen(ULONG mode_id)
|
||||
ADBSetRelMouseMode(true);
|
||||
|
||||
// Check whether the mode is a Picasso96 mode or a CyberGfx mode
|
||||
if (CyberGfxBase && IsCyberModeID(mode_id))
|
||||
is_cgfx = true;
|
||||
else if (P96Base && p96GetModeIDAttr(mode_id, P96IDA_ISP96))
|
||||
if (P96Base && p96GetModeIDAttr(mode_id, P96IDA_ISP96))
|
||||
is_p96 = true;
|
||||
else if (CyberGfxBase && IsCyberModeID(mode_id))
|
||||
is_cgfx = true;
|
||||
else {
|
||||
ErrorAlert(GetString(STR_NO_P96_MODE_ERR));
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user