Dumped most of the remaining "driver" code into a new "Display" class. This
touches a lot of the code, of course, and adds yet another global variable (temporarily, I hope), but everything still seems to work. Knock on wood. svn-id: r10806
This commit is contained in:
parent
f74a0c18aa
commit
8b42d65a7e
31 changed files with 949 additions and 1142 deletions
|
@ -525,7 +525,7 @@ void FontRenderer::printTextBlocs(void) {
|
|||
spriteInfo.data = _blocList[j].text_mem->ad + sizeof(_frameHeader);
|
||||
spriteInfo.colourTable = 0;
|
||||
|
||||
rv = DrawSprite(&spriteInfo);
|
||||
rv = g_display->drawSprite(&spriteInfo);
|
||||
if (rv)
|
||||
error("Driver Error %.8x in Print_text_blocs", rv);
|
||||
}
|
||||
|
@ -603,7 +603,7 @@ void Sword2Engine::initialiseFontResourceFlags(void) {
|
|||
// GERMAN: "Baphomet's Fluch II"
|
||||
// default: "Some game or other, part 86"
|
||||
|
||||
SetWindowName((char *) textLine);
|
||||
g_display->setWindowName((char *) textLine);
|
||||
|
||||
// now ok to close the text file
|
||||
res_man.close(TEXT_RES);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue