diff options
| author | Japa Illo | 2012-02-13 00:39:54 +0530 |
|---|---|---|
| committer | Japa Illo | 2012-02-13 00:39:54 +0530 |
| commit | 78f13e7490e78098152af2c6771dc63b09808f46 (patch) | |
| tree | 8921687f4cc073df00b35982303cb705ddee4fa0 /Creatures.cpp | |
| parent | 9e38e139ecce28e6bc316c05eccb28d411cae412 (diff) | |
| download | stonesense-78f13e7490e78098152af2c6771dc63b09808f46.tar.gz stonesense-78f13e7490e78098152af2c6771dc63b09808f46.tar.bz2 stonesense-78f13e7490e78098152af2c6771dc63b09808f46.tar.xz | |
Added zoom. Still needs enhance.
Also fixed the motion blur.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'Creatures.cpp')
| -rw-r--r-- | Creatures.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Creatures.cpp b/Creatures.cpp index b0ba69b..a9f6d1d 100644 --- a/Creatures.cpp +++ b/Creatures.cpp @@ -295,14 +295,14 @@ void DrawCreatureText(int drawx, int drawy, t_unit* creature ){ buffer[127]=0;
ALLEGRO_USTR* temp = bufferToUstr(buffer, 128);
al_ustr_set_chr(temp, 0, charToUpper(al_ustr_get(temp, 0)));
- draw_ustr_border(font, al_map_rgb(255,255,255), drawx, drawy-(WALLHEIGHT+al_get_font_line_height(font)), 0,
+ draw_ustr_border(font, al_map_rgb(255,255,255), drawx, drawy-((WALLHEIGHT*config.scale)+al_get_font_line_height(font)), 0,
temp );
al_ustr_free(temp);
}
else if (config.names_use_species)
{
if(!config.skipCreatureTypes)
- draw_textf_border(font, al_map_rgb(255,255,255), drawx, drawy-(WALLHEIGHT+al_get_font_line_height(font)), 0,
+ draw_textf_border(font, al_map_rgb(255,255,255), drawx, drawy-(WALLHEIGHT*config.scale+al_get_font_line_height(font)), 0,
"[%s]", contentLoader->Mats->race.at(creature->race).id.c_str());
}
}
|
