Fix for the SliderWidget glitch when showing very small values (and potentially for other small widgets)

svn-id: r35557
This commit is contained in:
Jordi Vilalta Prat 2008-12-26 12:15:51 +00:00
parent 1e60714ff7
commit d18d2d72a8
2 changed files with 3 additions and 8 deletions

View File

@ -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 {

View File

@ -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) {