mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-27 04:07:05 +00:00
AVALANCHE: Update Graph.
This commit is contained in:
parent
a096ee1957
commit
fa881567db
@ -78,6 +78,10 @@ void Graph::drawBar(int16 x1, int16 y1, int16 x2, int16 y2, int16 color) {
|
||||
_surface.fillRect(Common::Rect(x1, y1, x2, y2), color);
|
||||
}
|
||||
|
||||
void Graph::copySurface(Graphics::Surface source) {
|
||||
_surface.copyFrom(source);
|
||||
}
|
||||
|
||||
void Graph::refreshScreen() {
|
||||
g_system->copyRectToScreen(_surface.pixels, _surface.pitch , 0, 0, _screenWidth, _screenHeight);
|
||||
g_system->updateScreen();
|
||||
|
@ -54,6 +54,8 @@ public:
|
||||
|
||||
void drawBar(int16 x1, int16 y1, int16 x2, int16 y2, int16 color);
|
||||
|
||||
void copySurface(Graphics::Surface source);
|
||||
|
||||
void refreshScreen();
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user