From 525807c7290c8979dcdca3b210a14218c4edd8f1 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 12 Apr 2002 21:44:12 +0000 Subject: Moved Pieces Library functions to a new class. git-svn-id: http://svn.leocad.org/trunk@290 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/texfont.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/texfont.cpp') 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); -- cgit v1.2.3