DREAMWEB: Some more workspace cleanup

This commit is contained in:
Max Horn 2011-12-07 14:19:44 +01:00
parent e862aa4f7c
commit 4c64f87892
4 changed files with 4 additions and 5 deletions

View File

@ -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();

View File

@ -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)

View File

@ -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();

View File

@ -380,7 +380,7 @@ void DreamGenContext::showFrame() {
ch = height;
}
void DreamGenContext::clearWork() {
void DreamBase::clearWork() {
memset(workspace(), 0, 320*200);
}