GUI2/Canvas: disable surface manip w/ accelerated rendering for stretch resize mode

RenderCopy handles that automatically.
This commit is contained in:
Charles Dang 2017-06-07 14:57:19 +11:00
parent 2d39d19af9
commit e7d1c970bc

View file

@ -1113,8 +1113,7 @@ 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.
surf = stretch_surface_vertical(image_, h);
// Textures are automatically scaled to size.
w = image_->w;
}
else if(h == 0 && resize_mode_ == stretch) {
@ -1122,8 +1121,7 @@ void image_shape::draw(
<< ',' << image_->h << " to a width of " << w
<< ".\n";
// TODO: convert to texture handling.
surf = stretch_surface_horizontal(image_, w);
// Textures are automatically scaled to size.
h = image_->h;
}
else {