mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
spark: revert framebuffer scaling commits
we're going to use the STFB blitter instead of manually scaling everything if the videomode is not 720p, so more or less revert all commits regarding FB scaling: Revert "fontrenderer: scale fonts for nonstandard FB resolutions" Revert "neutrino: resize framebuffer on videomode change" Revert "fontrenderer: fix issue with epgwindow font when FB is scaling" Revert "neutrino: fix artefacts with scaling framebuffer and 1080i" Revert "spark: draw lines 2px wide instead of 1 in full-HD mode" Revert "spark: do not scale framebuffer for PAL mode" Revert "spark: fix framebuffer glitches" Revert "spark: do not sync blitter after every rectangle (improves performance)"
This commit is contained in:
@@ -1022,12 +1022,9 @@ void CInfoViewer::showSubchan ()
|
||||
y = g_settings.screen_EndY - dy - 10;
|
||||
}
|
||||
|
||||
int x_pic = lframeBuffer->scaleX(dx + 2 * borderwidth);
|
||||
int y_pic = lframeBuffer->scaleY(dy + 2 * borderwidth);
|
||||
fb_pixel_t *pixbuf = new fb_pixel_t[x_pic * y_pic];
|
||||
if (pixbuf)
|
||||
lframeBuffer->SaveScreen(x - borderwidth, y - borderwidth,
|
||||
dx + 2 * borderwidth, dy + 2 * borderwidth, pixbuf);
|
||||
fb_pixel_t pixbuf[(dx + 2 * borderwidth) * (dy + 2 * borderwidth)];
|
||||
lframeBuffer->SaveScreen (x - borderwidth, y - borderwidth, dx + 2 * borderwidth, dy + 2 * borderwidth, pixbuf);
|
||||
|
||||
// clear border
|
||||
lframeBuffer->paintBackgroundBoxRel (x - borderwidth, y - borderwidth, dx + 2 * borderwidth, borderwidth);
|
||||
lframeBuffer->paintBackgroundBoxRel (x - borderwidth, y + dy, dx + 2 * borderwidth, borderwidth);
|
||||
@@ -1066,11 +1063,7 @@ void CInfoViewer::showSubchan ()
|
||||
}
|
||||
}
|
||||
}
|
||||
if (pixbuf) {
|
||||
lframeBuffer->RestoreScreen(x - borderwidth, y - borderwidth,
|
||||
dx + 2 * borderwidth, dy + 2 * borderwidth, pixbuf);
|
||||
delete[] pixbuf;
|
||||
}
|
||||
lframeBuffer->RestoreScreen (x - borderwidth, y - borderwidth, dx + 2 * borderwidth, dy + 2 * borderwidth, pixbuf);
|
||||
}
|
||||
} else {
|
||||
g_RCInput->postMsg (NeutrinoMessages::SHOW_INFOBAR, 0);
|
||||
|
Reference in New Issue
Block a user