mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-03 16:09:32 +00:00
DREAMWEB: Some more workspace cleanup
This commit is contained in:
parent
e862aa4f7c
commit
4c64f87892
@ -70,7 +70,8 @@ public:
|
||||
|
||||
// from vgagrafx.cpp
|
||||
uint8 _workspace[(0x1000 + 2) * 16];
|
||||
uint8 *workspace() { return _workspace; }
|
||||
inline uint8 *workspace() { return _workspace; }
|
||||
void clearWork();
|
||||
|
||||
void printUnderMon();
|
||||
void cls();
|
||||
|
@ -353,8 +353,7 @@ void DreamWebEngine::blit(const uint8 *src, int pitch, int x, int y, int w, int
|
||||
}
|
||||
|
||||
void DreamWebEngine::printUnderMonitor() {
|
||||
uint8 *workspace = _context.workspace();
|
||||
uint8 *dst = workspace + DreamGen::kScreenwidth * 43 + 76;
|
||||
uint8 *dst = _base._workspace + DreamGen::kScreenwidth * 43 + 76;
|
||||
|
||||
Graphics::Surface *s = _system->lockScreen();
|
||||
if (!s)
|
||||
|
@ -31,7 +31,6 @@
|
||||
uint16 allocateMem(uint16 paragraphs);
|
||||
void deallocateMem(uint16 segment);
|
||||
uint8 *textUnder();
|
||||
void clearWork();
|
||||
uint16 standardLoad(const char *fileName, uint16 *outSizeInBytes = NULL); // Returns a segment handle which needs to be freed with deallocatemem for symmetry
|
||||
void *standardLoadCPP(const char *fileName, uint16 *outSizeInBytes = NULL); // And this one should be 'free'd
|
||||
void loadIntoTemp();
|
||||
|
@ -380,7 +380,7 @@ void DreamGenContext::showFrame() {
|
||||
ch = height;
|
||||
}
|
||||
|
||||
void DreamGenContext::clearWork() {
|
||||
void DreamBase::clearWork() {
|
||||
memset(workspace(), 0, 320*200);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user