Skip to content

Commit

Permalink
CTextureInfo: add constructor taking all parameters
Browse files Browse the repository at this point in the history
for use in tests
  • Loading branch information
notspiff committed Jun 23, 2024
1 parent 9d6ca3d commit 6231cc7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions xbmc/guilib/GUITexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,23 @@ class CTextureInfo
public:
CTextureInfo();
explicit CTextureInfo(const std::string &file);
CTextureInfo(bool large,
CRect bord,
bool fill,
int orient,
std::string diff,
KODI::GUILIB::GUIINFO::CGUIInfoColor color,
std::string f)
: useLarge(large),
border(bord),
m_infill(fill),
orientation(orient),
diffuse(std::move(diff)),
diffuseColor(color),
filename(std::move(f))
{
}

bool useLarge;
CRect border; // scaled - unneeded if we get rid of scale on load
bool m_infill{
Expand Down

0 comments on commit 6231cc7

Please sign in to comment.