From 42c6a785c74c200b19ceef6db5003f334c3edf29 Mon Sep 17 00:00:00 2001 From: dhewg Date: Sun, 6 Mar 2011 21:27:34 +0100 Subject: ANDROID: Texture cleanup --- backends/platform/android/texture.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'backends/platform/android/texture.h') diff --git a/backends/platform/android/texture.h b/backends/platform/android/texture.h index f2c79d4007..78df43aea9 100644 --- a/backends/platform/android/texture.h +++ b/backends/platform/android/texture.h @@ -95,7 +95,14 @@ public: protected: inline void setDirty() { _all_dirty = true; - _dirty_rect = Common::Rect(); + } + + inline void clearDirty() { + _all_dirty = false; + _dirty_rect.top = 0; + _dirty_rect.left = 0; + _dirty_rect.bottom = 0; + _dirty_rect.right = 0; } inline void setDirtyRect(const Common::Rect& r) { @@ -116,9 +123,9 @@ protected: Graphics::Surface _surface; GLuint _texture_width; GLuint _texture_height; - bool _all_dirty; // Covers dirty area + bool _all_dirty; Common::Rect _dirty_rect; Graphics::PixelFormat _pixelFormat; -- cgit v1.2.3