Skip to content

Commit

Permalink
CAspectRatio: add constructor with full parameter set
Browse files Browse the repository at this point in the history
required for testing purposes
  • Loading branch information
notspiff committed Jun 23, 2024
1 parent b948629 commit 2828cf1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xbmc/guilib/GUITexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ class CAspectRatio
ratio = aspect;
align = ASPECT_ALIGN_CENTER | ASPECT_ALIGNY_CENTER;
scaleDiffuse = true;
};
}

CAspectRatio(ASPECT_RATIO aspect, uint32_t al, bool scaleD)
: ratio(aspect), align(al), scaleDiffuse(scaleD)
{
}

bool operator!=(const CAspectRatio &right) const
{
if (ratio != right.ratio) return true;
Expand Down

0 comments on commit 2828cf1

Please sign in to comment.