From 65b2bfe8a138aa3aa3cc7f7a805ff2806a063b93 Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Mon, 5 Dec 2011 00:19:16 +0100 Subject: [PATCH] DREAMWEB: Ported 'getNumber' to C++ --- engines/dreamweb/print.cpp | 6 ------ engines/dreamweb/stubs.h | 1 - 2 files changed, 7 deletions(-) diff --git a/engines/dreamweb/print.cpp b/engines/dreamweb/print.cpp index dce5fc76bea..0127161e914 100644 --- a/engines/dreamweb/print.cpp +++ b/engines/dreamweb/print.cpp @@ -171,12 +171,6 @@ uint8 DreamGenContext::printDirect(const uint8** string, uint16 x, uint16 *y, ui } } -void DreamGenContext::getNumber() { - uint16 offset = di; - cl = getNumber((Frame *)ds.ptr(0, 0), es.ptr(si, 0), dl, (bool)(dl & 1), &offset); - di = offset; -} - uint8 DreamGenContext::getNumber(const Frame *charSet, const uint8 *string, uint16 maxWidth, bool centered, uint16* offset) { uint8 totalWidth = 0; uint8 charCount = 0; diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index a4faa6322db..df424d35038 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -88,7 +88,6 @@ uint8 printSlow(const uint8 *string, uint16 x, uint16 y, uint8 maxWidth, bool centered); void printSlow(); void dumpTextLine(); - void getNumber(); uint8 getNumber(const Frame *charSet, const uint8 *string, uint16 maxWidth, bool centered, uint16 *offset); uint8 kernChars(uint8 firstChar, uint8 secondChar, uint8 width); void oldToNames();