# HG changeset patch # User jasoka@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1217526220 0 # Node ID 0c6fe081ca86f306ebc86ec2db4d63c559bb36c1 # Parent 5f32bfdc4232787ecaeb60628635812850b0579b workaround for editor save -> map disappears bug. Not sure why the original method failed diff -r 5f32bfdc4232 -r 0c6fe081ca86 engine/core/video/renderbackend.cpp --- 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) {