added "is_normal" parameter

This parameter makes the game monitor if you mouse pointer is hovering over a button with text. If so, the text color is inverted.
This commit is contained in:
DinkyDyeAussie 2016-09-20 20:02:09 +10:00 committed by GitHub
parent 0b0deb7fe8
commit c3e0ea9748

View file

@ -8,7 +8,7 @@
*
* Copyright (c) 2004, 2005 darkbits Js_./
* Per Larsson a.k.a finalman _RqZ{a<^_aa
* Olof Naessén a.k.a jansem/yakslem _asww7!uY`> )\a//
* Olof Naessén a.k.a jansem/yakslem _asww7!uY`> )\a//
* _Qhm`] _f "'c 1!5m
* Visit: http://guichan.darkbits.org )Qk<P ` _: :+' .' "{[
* .)j(] .d_/ '-( P . S
@ -78,7 +78,7 @@ namespace gcn
return 8;
}
void DefaultFont::drawString(Graphics* graphics, const std::string& text, int x, int y)
void DefaultFont::drawString(Graphics* graphics, const std::string& text, int x, int y, bool is_normal)
{
unsigned int i;