aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/texture.h
diff options
context:
space:
mode:
authordhewg2011-03-06 21:27:34 +0100
committerdhewg2011-03-07 19:56:29 +0100
commit42c6a785c74c200b19ceef6db5003f334c3edf29 (patch)
treedd64b334ca93d8703e791b565edf766ced224ebf /backends/platform/android/texture.h
parent29b5b4afa66287dc382adbd2bfcb8add620d2a0d (diff)
downloadscummvm-rg350-42c6a785c74c200b19ceef6db5003f334c3edf29.tar.gz
scummvm-rg350-42c6a785c74c200b19ceef6db5003f334c3edf29.tar.bz2
scummvm-rg350-42c6a785c74c200b19ceef6db5003f334c3edf29.zip
ANDROID: Texture cleanup
Diffstat (limited to 'backends/platform/android/texture.h')
-rw-r--r--backends/platform/android/texture.h11
1 files changed, 9 insertions, 2 deletions
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;