- Am I the only one who thinks that static_casts can create really clunky code? (Thanks, GCC, for your overly paranoid warning settings that necessitate such ugliness. :( )
SVN r2844 (trunk)
This commit is contained in:
parent
15d74dab56
commit
16fa8cc249
7 changed files with 18 additions and 15 deletions
|
|
@ -604,7 +604,7 @@ void DLoadSaveMenu::Drawer ()
|
|||
{
|
||||
color = CR_ORANGE;
|
||||
}
|
||||
else if (j == static_cast<unsigned int> (Selected))
|
||||
else if ((int)j == Selected)
|
||||
{
|
||||
color = CR_WHITE;
|
||||
}
|
||||
|
|
@ -612,7 +612,8 @@ void DLoadSaveMenu::Drawer ()
|
|||
{
|
||||
color = CR_TAN;
|
||||
}
|
||||
if (j == static_cast<unsigned int> (Selected))
|
||||
|
||||
if ((int)j == Selected)
|
||||
{
|
||||
screen->Clear (listboxLeft, listboxTop+rowHeight*i,
|
||||
listboxRight, listboxTop+rowHeight*(i+1), -1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue