Commit c471f388 authored by Chen Bill's avatar Chen Bill Committed by GitHub

fix: compare signed and unsigned (#2792)

parent 741c229c
...@@ -1557,7 +1557,7 @@ void Game::ShowCardInfo(int code, bool resize) { ...@@ -1557,7 +1557,7 @@ void Game::ShowCardInfo(int code, bool resize) {
myswprintf(formatBuffer, L"%ls[%08d]", dataManager.GetName(code), code); myswprintf(formatBuffer, L"%ls[%08d]", dataManager.GetName(code), code);
} }
stName->setText(formatBuffer); stName->setText(formatBuffer);
if(guiFont->getDimension(formatBuffer).Width > stName->getRelativePosition().getWidth() - gameConf.textfontsize) if((int)guiFont->getDimension(formatBuffer).Width > stName->getRelativePosition().getWidth() - gameConf.textfontsize)
stName->setToolTipText(formatBuffer); stName->setToolTipText(formatBuffer);
else else
stName->setToolTipText(nullptr); stName->setToolTipText(nullptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment