mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Cosmetic: remove useless stuff
This commit is contained in:
parent
d2e4c3542a
commit
778527f73b
@ -1,15 +1,12 @@
|
|||||||
// Text.cpp
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "pixmap.h"
|
#include "pixmap.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
// Retourne l'offset pour un caractère donné.
|
// Retourne l'offset pour un caractère donné.
|
||||||
|
|
||||||
Sint32 GetOffset (char c)
|
Sint32 GetOffset (char c)
|
||||||
|
18
src/text.h
18
src/text.h
@ -1,36 +1,20 @@
|
|||||||
// Text.h
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define FONTWHITE 0
|
#define FONTWHITE 0
|
||||||
#define FONTRED 1
|
#define FONTRED 1
|
||||||
#define FONTSLIM 2
|
#define FONTSLIM 2
|
||||||
#define FONTLITTLE 10
|
#define FONTLITTLE 10
|
||||||
|
|
||||||
extern
|
|
||||||
void DrawText (CPixmap *pPixmap, POINT pos, const char *pText, Sint32 font = 0);
|
void DrawText (CPixmap *pPixmap, POINT pos, const char *pText, Sint32 font = 0);
|
||||||
|
|
||||||
extern
|
|
||||||
void DrawTextPente (CPixmap *pPixmap, POINT pos, char *pText,
|
void DrawTextPente (CPixmap *pPixmap, POINT pos, char *pText,
|
||||||
Sint32 pente, Sint32 font = 0);
|
Sint32 pente, Sint32 font = 0);
|
||||||
|
|
||||||
extern
|
|
||||||
void DrawTextRect (CPixmap *pPixmap, POINT pos, char *pText,
|
void DrawTextRect (CPixmap *pPixmap, POINT pos, char *pText,
|
||||||
Sint32 pente, Sint32 font = 0, Sint32 part = -1);
|
Sint32 pente, Sint32 font = 0, Sint32 part = -1);
|
||||||
|
|
||||||
extern
|
|
||||||
void DrawTextCenter (CPixmap *pPixmap, POINT pos, const char *pText,
|
void DrawTextCenter (CPixmap *pPixmap, POINT pos, const char *pText,
|
||||||
Sint32 font = 0);
|
Sint32 font = 0);
|
||||||
|
|
||||||
extern
|
|
||||||
Sint32 GetTextHeight (char *pText, Sint32 font = 0, Sint32 part = -1);
|
Sint32 GetTextHeight (char *pText, Sint32 font = 0, Sint32 part = -1);
|
||||||
|
|
||||||
extern
|
|
||||||
Sint32 GetTextWidth (const char *pText, Sint32 font = 0);
|
Sint32 GetTextWidth (const char *pText, Sint32 font = 0);
|
||||||
|
|
||||||
extern
|
|
||||||
void DrawBignum (CPixmap *pPixmap, POINT pos, Sint32 num);
|
void DrawBignum (CPixmap *pPixmap, POINT pos, Sint32 num);
|
||||||
|
|
||||||
extern
|
|
||||||
Sint32 GetBignumWidth (Sint32 num);
|
Sint32 GetBignumWidth (Sint32 num);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user