diff options
author | Stephen Kennedy | 2008-08-15 21:00:54 +0000 |
---|---|---|
committer | Stephen Kennedy | 2008-08-15 21:00:54 +0000 |
commit | 8c2340d323dcf7d404e05da147f4e964d0d10133 (patch) | |
tree | 0a8a7dc08fa8b19f34768b922fb7e069b6cd56bc /backends/vkeybd/virtual-keyboard-gui.h | |
parent | 93780d51cabca187a6dc5f7c406635ce06cf799b (diff) | |
download | scummvm-rg350-8c2340d323dcf7d404e05da147f4e964d0d10133.tar.gz scummvm-rg350-8c2340d323dcf7d404e05da147f4e964d0d10133.tar.bz2 scummvm-rg350-8c2340d323dcf7d404e05da147f4e964d0d10133.zip |
Optimization and cleanup of VirtualKeyboardGUI
svn-id: r33916
Diffstat (limited to 'backends/vkeybd/virtual-keyboard-gui.h')
-rw-r--r-- | backends/vkeybd/virtual-keyboard-gui.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/backends/vkeybd/virtual-keyboard-gui.h b/backends/vkeybd/virtual-keyboard-gui.h index f1ad92a067..6d05a24142 100644 --- a/backends/vkeybd/virtual-keyboard-gui.h +++ b/backends/vkeybd/virtual-keyboard-gui.h @@ -53,45 +53,43 @@ private: OSystem *_system; VirtualKeyboard *_kbd; + Rect _kbdBound; Graphics::Surface *_kbdSurface; OverlayColor _kbdTransparentColor; + Point _dragPoint; + bool _drag; static const int SNAP_WIDTH = 10; Graphics::Surface _overlayBackup; - Rect _dirtyRect; bool _displayEnabled; - bool _refreshDisplay; Graphics::Surface _dispSurface; const Graphics::Font *_dispFont; int16 _dispX, _dispY; uint _dispI; OverlayColor _dispForeColor, _dispBackColor; - Rect _kbdBound; - - Point _dragPoint; - bool _drag; - bool _displaying; bool _firstRun; - bool _needRedraw; int _lastScreenChanged; - void setDefaultPosition(); + void setupDisplayArea(Rect& r, OverlayColor forecolor); void move(int16 x, int16 y); + void moveToDefaultPosition(); void screenChanged(); void mainLoop(); void extendDirtyRect(const Rect &r); void resetDirtyRect(); void redraw(); + void forceRedraw(); void updateDisplay(); bool fontIsSuitable(const Graphics::Font *font, const Rect& rect); uint calculateEndIndex(const String& str, uint startIndex); bool _drawCaret; + int16 _caretX; static const int kCaretBlinkTime = 500; void animateCaret(); |