widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #00679
[Merge] lp:~alocritani/widelands/census_text_colors into lp:widelands
Angelo Locritani has proposed merging lp:~alocritani/widelands/census_text_colors into lp:widelands.
Requested reviews:
Widelands Developers (widelands-dev)
Related bugs:
Bug #927110 in widelands: "font color not adapted to map color"
https://bugs.launchpad.net/widelands/+bug/927110
For more details, see:
https://code.launchpad.net/~alocritani/widelands/census_text_colors/+merge/94653
shadow added to debug texts
--
https://code.launchpad.net/~alocritani/widelands/census_text_colors/+merge/94653
Your team Widelands Developers is requested to review the proposed merge of lp:~alocritani/widelands/census_text_colors into lp:widelands.
=== modified file 'src/wui/interactive_base.cc'
--- src/wui/interactive_base.cc 2012-02-23 23:22:01 +0000
+++ src/wui/interactive_base.cc 2012-02-25 13:40:26 +0000
@@ -374,7 +374,7 @@
char buf[100];
snprintf(buf, sizeof(buf), "%3i %3i", m_sel.pos.node.x, m_sel.pos.node.y);
- UI::g_fh->draw_text
+ UI::g_fh->draw_text_shadow
(dst, UI::TextStyle::ui_big(), Point(5, 5), buf, UI::Align_Left);
assert(m_sel.pos.triangle.t < 2);
const char * const triangle_string[] = {"down", "right"};
@@ -383,7 +383,7 @@
"%3i %3i %s",
m_sel.pos.triangle.x, m_sel.pos.triangle.y,
triangle_string[m_sel.pos.triangle.t]);
- UI::g_fh->draw_text
+ UI::g_fh->draw_text_shadow
(dst, UI::TextStyle::ui_big(),
Point(5, 25),
buf, UI::Align_Left);
@@ -396,7 +396,7 @@
(buffer, sizeof(buffer),
"%5.1f fps (avg: %5.1f fps)",
1000.0 / m_frametime, 1000.0 / (m_avg_usframetime / 1000));
- UI::g_fh->draw_text
+ UI::g_fh->draw_text_shadow
(dst, UI::TextStyle::ui_big(),
Point(85, 5),
buffer, UI::Align_Left);
Follow ups