mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Added dimming support to RatingComponent.
This commit is contained in:
parent
9396577c89
commit
5625f44a0a
|
@ -91,6 +91,13 @@ void RatingComponent::setOpacity(float opacity)
|
|||
updateColors();
|
||||
}
|
||||
|
||||
void RatingComponent::setDimming(float dimming)
|
||||
{
|
||||
mDimming = dimming;
|
||||
mVertices[0].dimming = mDimming;
|
||||
mVertices[4].dimming = mDimming;
|
||||
}
|
||||
|
||||
void RatingComponent::setColorShift(unsigned int color)
|
||||
{
|
||||
mColorShift = color;
|
||||
|
|
|
@ -33,6 +33,7 @@ public:
|
|||
void onSizeChanged() override;
|
||||
|
||||
void setOpacity(float opacity) override;
|
||||
void setDimming(float dimming) override;
|
||||
|
||||
// Multiply all pixels in the image by this color when rendering.
|
||||
void setColorShift(unsigned int color) override;
|
||||
|
|
Loading…
Reference in a new issue