1
0
Fork 0
forked from len0rd/rockbox

Rockboy: revert FS#11745 patch

William Shipley sent this patch via mailing list. Original Message:
  "There was a patch to rockboy in 2010 that fixed a problem where
  the bottom tile row would be rendered at the top.

  Here's the relevant issue from that time:
  http://www.rockbox.org/tracker/11745

  Note that Stummi openly admits it was a hack, not a true fix.

  Sometime in the 6 years since, the root cause was fixed. Currently,
  rockboy on the Clip+ and other 64px models shows the top of the gb
  screen along the bottom of the display.

  I confirmed that reversing this patch fixes the issue on my own
  Clip+"

I don't have any of the mentioned targets, so someone else has to test.

Change-Id: Id29b78c4ece0af53ba1280029c18b76808a21da2
This commit is contained in:
Sebastian Leonhardt 2016-06-25 16:30:37 +02:00 committed by Gerrit Rockbox
parent 68d192e722
commit e6687c11f2

View file

@ -294,7 +294,7 @@ void vid_update(int scanline)
scanline-=16; scanline-=16;
else if (fb.mode==2) else if (fb.mode==2)
scanline-=8; scanline-=8;
scanline_remapped = (scanline / 16 + 7) % 8; scanline_remapped = scanline / 16;
frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH; frameb = rb->lcd_framebuffer + scanline_remapped * LCD_WIDTH;
while (cnt < 160) { while (cnt < 160) {
balance += LCD_WIDTH; balance += LCD_WIDTH;