summaryrefslogtreecommitdiffstats
path: root/gui/console.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-10-22 21:17:47 +0200
committerEthan Yonker <dees_troy@teamw.in>2015-10-25 00:36:24 +0200
commitd0514ba8064513864469906b19d1c055e6c3b481 (patch)
tree9ebd80e948650b21e0432b87bdb4ac3fa94f2f93 /gui/console.cpp
parentfix build in Omni 4.4 (diff)
downloadandroid_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar.gz
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar.bz2
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar.lz
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar.xz
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar.zst
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.zip
Diffstat (limited to 'gui/console.cpp')
-rw-r--r--gui/console.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/console.cpp b/gui/console.cpp
index 2d6414ea4..47caadb15 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -195,7 +195,7 @@ int GUIConsole::RenderConsole(void)
// if last line is fully visible, keep tracking the last line when new lines are added
int bottom_offset = GetDisplayRemainder() - actualItemHeight;
- bool isAtBottom = firstDisplayedItem == GetItemCount() - GetDisplayItemCount() - (bottom_offset != 0) && y_offset == bottom_offset;
+ bool isAtBottom = firstDisplayedItem == (int)GetItemCount() - GetDisplayItemCount() - (bottom_offset != 0) && y_offset == bottom_offset;
if (isAtBottom)
scrollToEnd = true;
#if 0
@@ -304,7 +304,7 @@ size_t GUIConsole::GetItemCount()
return rConsole.size();
}
-void GUIConsole::RenderItem(size_t itemindex, int yPos, bool selected)
+void GUIConsole::RenderItem(size_t itemindex, int yPos, bool selected __unused)
{
// Set the color for the font
if (rConsoleColor[itemindex] == "normal") {
@@ -322,7 +322,7 @@ void GUIConsole::RenderItem(size_t itemindex, int yPos, bool selected)
gr_textEx_scaleW(mRenderX, yPos, text, mFont->GetResource(), mRenderW, TOP_LEFT, 0);
}
-void GUIConsole::NotifySelect(size_t item_selected)
+void GUIConsole::NotifySelect(size_t item_selected __unused)
{
// do nothing - console ignores selections
}