Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions src/CrossPlatform/video_blit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,26 @@ bool Screen_blitter_init(VisualFormat const & visual_format, bool native_byte_or
}
}
#else
// The UAE memory handlers will blit correctly
// --> no need for specialised blitters here
Screen_blit = Blit_Copy_Raw;
if (use_sdl_video && 8 > mac_depth && 8 == visual_format.depth) {
switch (mac_depth) {
case 1:
Screen_blit = Blit_Expand_1_To_8;
break;
case 2:
Screen_blit = Blit_Expand_2_To_8;
break;
case 4:
Screen_blit = Blit_Expand_4_To_8;
break;
default:
Screen_blit = Blit_Copy_Raw;
break;
}
} else {
// The UAE memory handlers will blit correctly
// --> no need for specialised blitters here
Screen_blit = Blit_Copy_Raw;
}
#endif

// If the blitter simply reduces to a copy, we don't need VOSF in DGA mode
Expand Down