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
2 changed files with 3 additions and 8 deletions
|
@ -426,6 +426,8 @@ template <typename PixelType, typename PixelFormat>
|
||||||
void VectorRendererSpec<PixelType, PixelFormat>::
|
void VectorRendererSpec<PixelType, PixelFormat>::
|
||||||
colorFill(PixelType *first, PixelType *last, PixelType color) {
|
colorFill(PixelType *first, PixelType *last, PixelType color) {
|
||||||
register int count = (last - first);
|
register int count = (last - first);
|
||||||
|
if (!count)
|
||||||
|
return;
|
||||||
register int n = (count + 7) >> 3;
|
register int n = (count + 7) >> 3;
|
||||||
switch (count % 8) {
|
switch (count % 8) {
|
||||||
case 0: do {
|
case 0: do {
|
||||||
|
|
|
@ -706,14 +706,7 @@ void ThemeEngine::drawSlider(const Common::Rect &r, int width, WidgetStateInfo s
|
||||||
|
|
||||||
drawWidgetBackground(r, 0, kWidgetBackgroundSlider, kStateEnabled);
|
drawWidgetBackground(r, 0, kWidgetBackgroundSlider, kStateEnabled);
|
||||||
|
|
||||||
// TODO/FIXME: This seems to prevent displaying of
|
queueDD(dd, r2);
|
||||||
// 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThemeEngine::drawScrollbar(const Common::Rect &r, int sliderY, int sliderHeight, ScrollbarState scrollState, WidgetStateInfo state) {
|
void ThemeEngine::drawScrollbar(const Common::Rect &r, int sliderY, int sliderHeight, ScrollbarState scrollState, WidgetStateInfo state) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue