Fixes #1322
@@ -89,6 +89,15 @@ end_frame(FrameMode mode, Thread *current_thread) {
}
+/**
+ *
+ */
+void TinyGraphicsBuffer::
+set_size(int x, int y) {
+ GraphicsBuffer::set_size(x, y);
+ create_frame_buffer();
+}
+
/**
* Closes the buffer right now. Called from the buffer thread.
*/
@@ -35,6 +35,8 @@ public:
virtual bool begin_frame(FrameMode mode, Thread *current_thread);
virtual void end_frame(FrameMode mode, Thread *current_thread);
+ virtual void set_size(int x, int y);
INLINE ZBuffer *get_frame_buffer();
protected: