From 05360ba6b00e39f4ec4399f3007d6ace6b6598d7 Mon Sep 17 00:00:00 2001 From: that Date: Fri, 6 Feb 2015 00:58:16 +0100 Subject: gui: fix console lockup when scrolling Apparently fixing all the signed/unsigned warnings was good. :) Change-Id: I62faa23179e8b2436fe0d24d2152af341cd42fe9 --- gui/objects.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gui/objects.hpp') diff --git a/gui/objects.hpp b/gui/objects.hpp index 0928f3050..c286567f9 100644 --- a/gui/objects.hpp +++ b/gui/objects.hpp @@ -407,11 +407,11 @@ protected: COLOR mForegroundColor; COLOR mBackgroundColor; COLOR mScrollColor; - unsigned int mFontHeight; - int mCurrentLine; - unsigned int mLastCount; - unsigned int RenderCount; - unsigned int mMaxRows; + int mFontHeight; + int mCurrentLine; // index of last line to show; -1 to keep tracking last line + size_t mLastCount; // lines from gConsole that are already split and copied into rConsole + size_t RenderCount; // total number of lines after wrapping + int mMaxRows; // height of console in text rows int mStartY; int mSlideoutX, mSlideoutY, mSlideoutW, mSlideoutH; int mSlideinX, mSlideinY, mSlideinW, mSlideinH; -- cgit v1.2.3