From 778527f73b501c1c3d49bebc9703bc92c11e4c98 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Wed, 15 Feb 2017 17:42:02 +0100 Subject: [PATCH] Cosmetic: remove useless stuff --- src/text.cpp | 5 +---- src/text.h | 18 +----------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/text.cpp b/src/text.cpp index 681b176..578f714 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -1,15 +1,12 @@ -// Text.cpp #include #include + #include "def.h" #include "pixmap.h" #include "text.h" -///////////////////////////////////////////////////////////////////////////// - - // Retourne l'offset pour un caractère donné. Sint32 GetOffset (char c) diff --git a/src/text.h b/src/text.h index 3b7abd7..5647bd0 100644 --- a/src/text.h +++ b/src/text.h @@ -1,36 +1,20 @@ -// Text.h #pragma once #define FONTWHITE 0 #define FONTRED 1 #define FONTSLIM 2 -#define FONTLITTLE 10 +#define FONTLITTLE 10 -extern void DrawText (CPixmap *pPixmap, POINT pos, const char *pText, Sint32 font = 0); - -extern void DrawTextPente (CPixmap *pPixmap, POINT pos, char *pText, Sint32 pente, Sint32 font = 0); - -extern void DrawTextRect (CPixmap *pPixmap, POINT pos, char *pText, Sint32 pente, Sint32 font = 0, Sint32 part = -1); - -extern void DrawTextCenter (CPixmap *pPixmap, POINT pos, const char *pText, Sint32 font = 0); - -extern Sint32 GetTextHeight (char *pText, Sint32 font = 0, Sint32 part = -1); - -extern Sint32 GetTextWidth (const char *pText, Sint32 font = 0); - -extern void DrawBignum (CPixmap *pPixmap, POINT pos, Sint32 num); - -extern Sint32 GetBignumWidth (Sint32 num);