mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 07:53:12 +00:00
Fix for the SliderWidget glitch when showing very small values (and potentially for other small widgets)
svn-id: r35557
This commit is contained in:
parent
1e60714ff7
commit
d18d2d72a8
@ -426,6 +426,8 @@ template <typename PixelType, typename PixelFormat>
|
||||
void VectorRendererSpec<PixelType, PixelFormat>::
|
||||
colorFill(PixelType *first, PixelType *last, PixelType color) {
|
||||
register int count = (last - first);
|
||||
if (!count)
|
||||
return;
|
||||
register int n = (count + 7) >> 3;
|
||||
switch (count % 8) {
|
||||
case 0: do {
|
||||
|
@ -706,14 +706,7 @@ void ThemeEngine::drawSlider(const Common::Rect &r, int width, WidgetStateInfo s
|
||||
|
||||
drawWidgetBackground(r, 0, kWidgetBackgroundSlider, kStateEnabled);
|
||||
|
||||
// TODO/FIXME: This seems to prevent displaying of
|
||||
// slider widgets in low ranges. When disabling it
|
||||
// the slider is shown, but it creates gfx glitches
|
||||
// in modern theme. Modern theme uses "roundedsq"
|
||||
// as drawing function, thus the real bug should be
|
||||
// in VectorRenderer::drawRoundedSquare.
|
||||
if (width > r.width() * 5 / 100)
|
||||
queueDD(dd, r2);
|
||||
queueDD(dd, r2);
|
||||
}
|
||||
|
||||
void ThemeEngine::drawScrollbar(const Common::Rect &r, int sliderY, int sliderHeight, ScrollbarState scrollState, WidgetStateInfo state) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user