uint32_t max_height = g_advancedSettings.m_imageRes;
if (g_advancedSettings.m_fanartRes > g_advancedSettings.m_imageRes)
{ // a separate fanart resolution is specified - check if the image is exactly equal to this res
- if (width == g_advancedSettings.m_fanartRes * 16/9 && height == g_advancedSettings.m_fanartRes)
+ if (width == (unsigned int)g_advancedSettings.m_fanartRes * 16/9 && height == (unsigned int)g_advancedSettings.m_fanartRes)
{ // special case for fanart res
max_height = g_advancedSettings.m_fanartRes;
}
#endif
int width = BOOKMARK_THUMB_WIDTH;
int height = (int)(BOOKMARK_THUMB_WIDTH / aspectRatio);
- if (height > BOOKMARK_THUMB_WIDTH)
+ if (height > (int)BOOKMARK_THUMB_WIDTH)
{
height = BOOKMARK_THUMB_WIDTH;
width = (int)(BOOKMARK_THUMB_WIDTH * aspectRatio);