Mercurial > fife-parpg
changeset 118:0c6fe081ca86
workaround for editor save -> map disappears bug. Not sure why the original method failed
author | jasoka@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 31 Jul 2008 17:43:40 +0000 |
parents | 5f32bfdc4232 |
children | 6f9c7d0b35d4 |
files | engine/core/video/renderbackend.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/engine/core/video/renderbackend.cpp Tue Jul 29 05:20:42 2008 +0000 +++ b/engine/core/video/renderbackend.cpp Thu Jul 31 17:43:40 2008 +0000 @@ -84,7 +84,9 @@ const Rect& RenderBackend::getArea() { assert(m_screen); - return m_screen->getArea(); + SDL_Surface* s = m_screen->getSurface(); + static Rect r(0, 0, s->w, s->h); + return r; } void RenderBackend::getPixelRGBA(int x, int y, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) {