Next step in transaction implementation. Now it postpones all calls.
NOTE: This breaks most ports, and they will not pass assertions. If you will fix it (by moving violating OSystem calls to go() method), I'll be grateful. If you don't bother to fix it, there is a workaround. Just comment out beginGFXTransaction() and endGFXTransaction() in backends/sdl/graphics.cpp. This will tunr it off and will use default transaction-less implementation. svn-id: r15870
This commit is contained in:
parent
37e900a2a3
commit
7877ccf628
3 changed files with 150 additions and 15 deletions
|
@ -53,6 +53,9 @@ public:
|
|||
OSystem_SDL();
|
||||
virtual ~OSystem_SDL();
|
||||
|
||||
void beginGFXTransaction(void);
|
||||
void endGFXTransaction(void);
|
||||
|
||||
// Set the size of the video bitmap.
|
||||
// Typically, 320x200
|
||||
void initSize(uint w, uint h);
|
||||
|
@ -195,11 +198,31 @@ protected:
|
|||
DF_UPDATE_EXPAND_1_PIXEL = 1 << 1
|
||||
};
|
||||
|
||||
enum {
|
||||
kTransactionNone = 0,
|
||||
kTransactionCommit = 1,
|
||||
kTransactionActive = 2
|
||||
};
|
||||
|
||||
struct transactionDetails {
|
||||
int mode;
|
||||
bool modeChanged;
|
||||
int w;
|
||||
bool wChanged;
|
||||
int h;
|
||||
bool hChanged;
|
||||
bool fs;
|
||||
bool fsChanged;
|
||||
bool ar;
|
||||
bool arChanged;
|
||||
} _transactionDetails;
|
||||
|
||||
bool _forceFull; // Force full redraw on next updateScreen
|
||||
ScalerProc *_scalerProc;
|
||||
int _scalerType;
|
||||
int _scaleFactor;
|
||||
int _mode;
|
||||
int _transactionMode;
|
||||
bool _full_screen;
|
||||
uint32 _mode_flags;
|
||||
bool _modeChanged;
|
||||
|
@ -281,6 +304,7 @@ protected:
|
|||
virtual void hotswap_gfx_mode();
|
||||
|
||||
void setFullscreenMode(bool enable);
|
||||
void setAspectRatioCorrection(bool enable);
|
||||
|
||||
bool save_screenshot(const char *filename);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue