Fix compile warnings

This commit is contained in:
baldurk
2016-10-05 01:09:22 +02:00
parent b14135a22e
commit a8ca89e0f5
2 changed files with 23 additions and 1 deletions
+4 -1
View File
@@ -617,7 +617,7 @@ void TextureViewer::UI_UpdateStatusText()
uint32_t hoverX = (uint32_t)m_CurHoverPixel.x();
uint32_t hoverY = (uint32_t)m_CurHoverPixel.y();
if(hoverX > tex.width || hoverY > tex.height || hoverX < 0 || hoverY < 0)
if(hoverX > tex.width || hoverY > tex.height)
statusText = tr("Hover - ") + "[" + hoverCoords + "]";
if(m_PickedPoint.x() >= 0)
@@ -952,6 +952,9 @@ void TextureViewer::UI_OnTextureSelectionChanged(bool newdraw)
m_PrevFirstArraySlice = firstArraySlice;
}
(void)usemipsettings;
(void)useslicesettings;
UI_UpdateFittedScale();
UI_UpdateTextureDetails();
UI_UpdateChannels();