Skip to content

Commit

Permalink
atari:xbios: On ST,STE, C2P routine has 4 bits planes as destination,…
Browse files Browse the repository at this point in the history
… calculate correct width
  • Loading branch information
pmandin committed Jan 12, 2019
1 parent f7599fb commit 43c5417
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/xbios/SDL_xbios_st.c
Expand Up @@ -158,6 +158,10 @@ static void getScreenFormat(_THIS, int bpp, Uint32 *rmask, Uint32 *gmask, Uint32

static int getLineWidth(_THIS, xbiosmode_t *new_video_mode, int width, int bpp)
{
if (bpp==4) {
return (width >> 1);
}

return (width * (((bpp==15) ? 16 : bpp)>>3));
}

Expand Down

0 comments on commit 43c5417

Please sign in to comment.