Open main menu

Difference between revisions of "HOWTO-Backends"

18 bytes added ,  15:18, 25 October 2018
m
Text replacement - "</source>" to "</syntaxhighlight>"
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
m (Text replacement - "</source>" to "</syntaxhighlight>")
Line 32: Line 32:
     g_system->quit();
     g_system->quit();
     return res;
     return res;
}</source>
}</syntaxhighlight>


That's it. The difficult part is of course writing the OSystem subclass. More on that in the next section!
That's it. The difficult part is of course writing the OSystem subclass. More on that in the next section!
Line 60: Line 60:


     // do actual screen update
     // do actual screen update
}</source>
}</syntaxhighlight>


That should do the trick for you. This code has the slight disadvantage that it skips some screen updates though. This means there is a possibility that it skips an important screen update, which is not followed by any other screen update for some time, leading to some graphics glitch.
That should do the trick for you. This code has the slight disadvantage that it skips some screen updates though. This means there is a possibility that it skips an important screen update, which is not followed by any other screen update for some time, leading to some graphics glitch.
TrustedUser
2,147

edits