Skip to content

Commit

Permalink
GUI2/Canvas: disable surface manip w/ accelerated rendering for stret…
Browse files Browse the repository at this point in the history
…ch resize mode

RenderCopy handles that automatically.
  • Loading branch information
Vultraz committed Jul 26, 2017
1 parent 4d0dab9 commit 414fd63
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/core/canvas.cpp
Expand Up @@ -1121,8 +1121,10 @@ void image_shape::draw(
DBG_GUI_D << "Image: vertical stretch from " << image_->w << ','
<< image_->h << " to a height of " << h << ".\n";

// TODO: convert to texture handling.
// Textures are automatically scaled to size.
#ifdef SW_RENDERING_LEGACY_MODE
surf = stretch_surface_vertical(image_, h);
#endif
done = true;
}
w = image_->w;
Expand All @@ -1134,8 +1136,10 @@ void image_shape::draw(
<< ',' << image_->h << " to a width of " << w
<< ".\n";

// TODO: convert to texture handling.
// Textures are automatically scaled to size.
#ifdef SW_RENDERING_LEGACY_MODE
surf = stretch_surface_horizontal(image_, w);
#endif
done = true;
}
h = image_->h;
Expand Down

0 comments on commit 414fd63

Please sign in to comment.