atari:xbios: On ST,STE, C2P routine has 4 bits planes as destination, calculate correct width SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Sat, 12 Jan 2019 23:07:14 +0100
branchSDL-1.2
changeset 12535edb58d951656
parent 12502 2560bdcf3130
child 12536 6472da23f3ef
atari:xbios: On ST,STE, C2P routine has 4 bits planes as destination, calculate correct width
src/video/xbios/SDL_xbios_st.c
     1.1 --- a/src/video/xbios/SDL_xbios_st.c	Fri Aug 17 22:37:16 2018 +0100
     1.2 +++ b/src/video/xbios/SDL_xbios_st.c	Sat Jan 12 23:07:14 2019 +0100
     1.3 @@ -158,6 +158,10 @@
     1.4  
     1.5  static int getLineWidth(_THIS, xbiosmode_t *new_video_mode, int width, int bpp)
     1.6  {
     1.7 +	if (bpp==4) {
     1.8 +		return (width >> 1);
     1.9 +	}
    1.10 +
    1.11  	return (width * (((bpp==15) ? 16 : bpp)>>3));
    1.12  }
    1.13