mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
Namespace to Qt libs
Took 5 minutes
This commit is contained in:
parent
e31d9f2f7d
commit
61e5639f72
1 changed files with 10 additions and 10 deletions
|
|
@ -21,16 +21,6 @@ inline color convertQColorToColor(const QColor &c)
|
|||
result.set_b(c.blue());
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
inline color makeColor(int r, int g, int b)
|
||||
{
|
||||
color result;
|
||||
result.set_r(r);
|
||||
result.set_g(g);
|
||||
result.set_b(b);
|
||||
return result;
|
||||
}
|
||||
|
||||
namespace GameSpecificColors
|
||||
{
|
||||
|
|
@ -68,5 +58,15 @@ inline QColor colorHelper(const QString &name)
|
|||
}
|
||||
} // namespace MTG
|
||||
} // namespace GameSpecificColors
|
||||
#endif
|
||||
|
||||
inline color makeColor(int r, int g, int b)
|
||||
{
|
||||
color result;
|
||||
result.set_r(r);
|
||||
result.set_g(g);
|
||||
result.set_b(b);
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue