Skip to content

Commit

Permalink
Traktor: Fixed blend mode in CheckPropertyItem.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed May 14, 2024
1 parent e0ca872 commit 2c83bd4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions code/Ui/PropertyList/CheckPropertyItem.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* TRAKTOR
* Copyright (c) 2022 Anders Pistol.
* Copyright (c) 2022-2024 Anders Pistol.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -13,10 +13,8 @@
#include "Ui/PropertyList/CheckPropertyItem.h"
#include "Ui/PropertyList/PropertyList.h"

namespace traktor
namespace traktor::ui
{
namespace ui
{

T_IMPLEMENT_RTTI_CLASS(L"traktor.ui.CheckProperyItem", CheckPropertyItem, PropertyItem)

Expand Down Expand Up @@ -54,7 +52,8 @@ void CheckPropertyItem::paintValue(PropertyList* parent, Canvas& canvas, const R
ui::Point(rc.left + 2, rc.top + c),
ui::Point(0, 0),
image->getSize(parent),
image
image,
BlendMode::Alpha
);
}

Expand All @@ -77,5 +76,4 @@ bool CheckPropertyItem::paste()
return true;
}

}
}

0 comments on commit 2c83bd4

Please sign in to comment.