Mercurial > fife-parpg
comparison engine/core/video/renderbackend.cpp @ 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 | 90005975cdbb |
children | ad7969d9460b |
comparison
equal
deleted
inserted
replaced
117:5f32bfdc4232 | 118:0c6fe081ca86 |
---|---|
82 return m_screen->getHeight(); | 82 return m_screen->getHeight(); |
83 } | 83 } |
84 | 84 |
85 const Rect& RenderBackend::getArea() { | 85 const Rect& RenderBackend::getArea() { |
86 assert(m_screen); | 86 assert(m_screen); |
87 return m_screen->getArea(); | 87 SDL_Surface* s = m_screen->getSurface(); |
88 static Rect r(0, 0, s->w, s->h); | |
89 return r; | |
88 } | 90 } |
89 | 91 |
90 void RenderBackend::getPixelRGBA(int x, int y, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) { | 92 void RenderBackend::getPixelRGBA(int x, int y, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) { |
91 assert(m_screen); | 93 assert(m_screen); |
92 m_screen->getPixelRGBA(x, y, r, g, b, a); | 94 m_screen->getPixelRGBA(x, y, r, g, b, a); |