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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user