projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d35cc6
)
fixed nasty x/y typo bug
author
Holger Schemel
<info@artsoft.org>
Mon, 26 Nov 2018 23:18:35 +0000
(
00:18
+0100)
committer
Holger Schemel
<info@artsoft.org>
Mon, 26 Nov 2018 23:18:35 +0000
(
00:18
+0100)
src/libgame/text.c
patch
|
blob
|
history
diff --git
a/src/libgame/text.c
b/src/libgame/text.c
index c7c5f45bc081d1fc16d1afd1a9cb764a2f7351b4..02a23c3d43b02a053ffabf7fced633d441531de4 100644
(file)
--- a/
src/libgame/text.c
+++ b/
src/libgame/text.c
@@
-204,7
+204,7
@@
void DrawTextSCentered(int y, int font_nr, char *text)
void DrawTextSAligned(int x, int y, char *text, int font_nr, int align)
{
DrawText(gfx.sx + ALIGNED_XPOS(x, getTextWidth(text, font_nr), align),
- gfx.s
x
+ y, text, font_nr);
+ gfx.s
y
+ y, text, font_nr);
}
void DrawTextAligned(int x, int y, char *text, int font_nr, int align)