summaryrefslogtreecommitdiff
path: root/src/stubs2.cpp
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-08-06 04:07:44 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit12c6a39177837a5c4dc8928a78140b4c3bb8f47a (patch)
tree18c8210d0264a7b23a8f34008b3f10a994a87241 /src/stubs2.cpp
parentd0582ff279a5453130c3adc1fb2606ab330be292 (diff)
'Undid' stubbing of IndexedFont::IndexedFont and IndexedFont::GetFont().
Initialized ScreenDescriptorBlock to some default values. Now AvP runs and exits with no errors with current main()
Diffstat (limited to 'src/stubs2.cpp')
-rw-r--r--src/stubs2.cpp28
1 files changed, 12 insertions, 16 deletions
diff --git a/src/stubs2.cpp b/src/stubs2.cpp
index 72cb86e..e2c8d8c 100644
--- a/src/stubs2.cpp
+++ b/src/stubs2.cpp
@@ -27,15 +27,21 @@ void D3D_RenderHUDString_Centred(char *stringPtr, int centreX, int y, int colour
/* indexfnt.cpp */
-#if 1
-IndexedFont* IndexedFont::GetFont(FontIndex I_Font_ToGet)
+IndexedFont* IndexedFont :: pIndexedFont[ IndexedFonts_MAX_NUMBER_OF_FONTS ];
+
+IndexedFont::IndexedFont(FontIndex I_Font_New)
{
- fprintf(stderr, "IndexedFont::GetFont(%d)\n", I_Font_ToGet);
-// return pIndexedFont[ I_Font_ToGet ];
+ fprintf(stderr, "IndexedFont::IndexedFont(%d)\n", I_Font_New);
+
+ I_Font_Val = I_Font_New;
+
+ pIndexedFont[ I_Font_New ] = this;
+}
- return NULL;
+IndexedFont::~IndexedFont()
+{
+ fprintf(stderr, "IndexedFont::~IndexedFont()\n");
}
-#endif
void IndexedFont::UnloadFont(FontIndex I_Font_ToGet)
{
@@ -54,16 +60,6 @@ void IndexedFont_Proportional_PF::PFUnLoadHook(FontIndex I_Font_ToGet)
fprintf(stderr, "IndexedFont_Proportional_PF::PFUnLoadHook(%d)\n", I_Font_ToGet);
}
-IndexedFont::IndexedFont(FontIndex I_Font_New)
-{
- fprintf(stderr, "IndexedFont::IndexedFont(%d)\n", I_Font_New);
-}
-
-IndexedFont::~IndexedFont()
-{
- fprintf(stderr, "IndexedFont::~IndexedFont()\n");
-}
-
IndexedFont_HUD::IndexedFont_HUD(FontIndex I_Font_New) : IndexedFont(I_Font_New)
{
fprintf(stderr, "IndexedFont_HUD::IndexedFont_HUD(%d)\n", I_Font_New);