summaryrefslogtreecommitdiff
path: root/common/texfont.cpp
diff options
context:
space:
mode:
authorleo2002-04-12 21:44:12 +0000
committerleo2002-04-12 21:44:12 +0000
commit525807c7290c8979dcdca3b210a14218c4edd8f1 (patch)
treee979086453064de6ca5f6855a4a28a6e4a32f76e /common/texfont.cpp
parentd3b46f0412d25ffd7ab1407b7bc892aa5eea4147 (diff)
Moved Pieces Library functions to a new class.
git-svn-id: http://svn.leocad.org/trunk@290 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/texfont.cpp')
-rw-r--r--common/texfont.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/texfont.cpp b/common/texfont.cpp
index 252b72b..fa3fe0f 100644
--- a/common/texfont.cpp
+++ b/common/texfont.cpp
@@ -6,6 +6,7 @@
#include "project.h"
#include "texfont.h"
#include "texture.h"
+#include "library.h"
#include "file.h"
#define LC_TEXFONT_FILE_VERSION 1 // LeoCAD 0.74
@@ -55,7 +56,7 @@ bool TexFont::FileLoad (File& file)
memset (buf, 0, 32);
file.Read (buf, 8);
- m_pTexture = project->FindTexture (buf);
+ m_pTexture = project->GetPiecesLibrary()->FindTexture (buf);
if (m_pTexture == NULL)
{
console.PrintError ("Cannot find texture for font %s.\n", buf);