1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Created separate subclasses for output and off-screen surfaces

There are a few exclusive operations for each type. Also we no longer
need the freeWhenDone flag since the class now determines whether the
surface should be freed or not.
This commit is contained in:
Maarten ter Huurne
2014-08-10 13:25:54 +02:00
parent b3719d1331
commit 4bd1c799bd
17 changed files with 195 additions and 161 deletions

View File

@@ -50,7 +50,7 @@ SettingsDialog::~SettingsDialog() {
}
bool SettingsDialog::exec() {
Surface bg(gmenu2x->bg);
OffscreenSurface bg(gmenu2x->bg);
bg.convertToDisplayFormat();
bool close = false, ts_pressed = false;
@@ -78,7 +78,7 @@ bool SettingsDialog::exec() {
}
while (!close) {
Surface& s = *gmenu2x->s;
OutputSurface& s = *gmenu2x->s;
if (ts.available()) ts.poll();