Skip to content

Commit

Permalink
Merge remote-tracking branch 'own/prince' into prince-malik
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Zbróg committed Nov 4, 2013
2 parents 85694ec + 4b2a760 commit 04207e0
Show file tree
Hide file tree
Showing 4 changed files with 269 additions and 54 deletions.
4 changes: 2 additions & 2 deletions engines/prince/prince.cpp
Expand Up @@ -407,7 +407,7 @@ void PrinceEngine::hotspot() {
continue;
if (it->_rect.contains(mousePosCamera)) {
uint16 textW = 0;
for (int i = 0; i < it->_name.size(); ++i)
for (uint16 i = 0; i < it->_name.size(); ++i)
textW += _font.getCharWidth(it->_name[i]);

uint16 x = mousepos.x - textW/2;
Expand Down Expand Up @@ -459,7 +459,7 @@ void PrinceEngine::showTexts() {
Common::Array<Common::String> lines;
_font.wordWrapText(text._str, _graph->_frontScreen->w, lines);

for (int i = 0; i < lines.size(); ++i) {
for (uint8 i = 0; i < lines.size(); ++i) {
_font.drawString(
_graph->_frontScreen,
lines[i],
Expand Down

0 comments on commit 04207e0

Please sign in to comment.