projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060726-3-src
[rocksndiamonds.git]
/
src
/
libgame
/
text.c
diff --git
a/src/libgame/text.c
b/src/libgame/text.c
index 94e4c3c9c5d8531319030f5d65a150c72908b06f..45de4987c279401ae4654f72b73a915e7a8817e7 100644
(file)
--- a/
src/libgame/text.c
+++ b/
src/libgame/text.c
@@
-130,6
+130,13
@@
void FreeFontInfo(struct FontBitmapInfo *font_bitmap_info)
free(font_bitmap_info);
}
free(font_bitmap_info);
}
+struct FontBitmapInfo *getFontBitmapInfo(int font_nr)
+{
+ int font_bitmap_id = gfx.select_font_function(font_nr);
+
+ return &gfx.font_bitmap_info[font_bitmap_id];
+}
+
int getFontWidth(int font_nr)
{
int font_bitmap_id = gfx.select_font_function(font_nr);
int getFontWidth(int font_nr)
{
int font_bitmap_id = gfx.select_font_function(font_nr);
@@
-272,8
+279,8
@@
void DrawTextExt(DrawBuffer *dst_bitmap, int dst_x, int dst_y, char *text,
return;
/* add offset for drawing font characters */
return;
/* add offset for drawing font characters */
- dst_x += font->draw_x;
- dst_y += font->draw_y;
+ dst_x += font->draw_x
offset
;
+ dst_y += font->draw_y
offset
;
while (*text_ptr)
{
while (*text_ptr)
{