mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-21 08:01:03 +00:00
- ZWidget: Remove canvas->fillRect()
call in ImageBox::OnPaint()
.
* This was causing transparent images to sit on a pure black canvas rather than the colour of the dialogue box. * This change has been submitted upstream also.
This commit is contained in:
parent
a5760dc52f
commit
6aa706ce79
1 changed files with 0 additions and 1 deletions
|
@ -24,7 +24,6 @@ void ImageBox::SetImage(std::shared_ptr<Image> newImage)
|
|||
|
||||
void ImageBox::OnPaint(Canvas* canvas)
|
||||
{
|
||||
canvas->fillRect(Rect::xywh(0.0, 0.0, GetWidth(), GetHeight()), Colorf::fromRgba8(0, 0, 0));
|
||||
if (image)
|
||||
{
|
||||
canvas->drawImage(image, Point((GetWidth() - (double)image->GetWidth()) * 0.5, (GetHeight() - (double)image->GetHeight()) * 0.5));
|
||||
|
|
Loading…
Reference in a new issue