mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 13:18:50 +00:00
More warnings: mark/avert truncating conversions from float.
This commit is contained in:
parent
4f5729dd59
commit
2630169229
6 changed files with 13 additions and 13 deletions
|
@ -189,8 +189,8 @@ void RasterFont::printMultilineText(const char *text, double start_x, double sta
|
|||
int usage = 0;
|
||||
GLfloat delta_x = GLfloat(2*char_width)/GLfloat(bbWidth);
|
||||
GLfloat delta_y = GLfloat(2*char_height)/GLfloat(bbHeight);
|
||||
GLfloat border_x = 2.0/GLfloat(bbWidth);
|
||||
GLfloat border_y = 4.0/GLfloat(bbHeight);
|
||||
GLfloat border_x = 2.0f/GLfloat(bbWidth);
|
||||
GLfloat border_y = 4.0f/GLfloat(bbHeight);
|
||||
|
||||
GLfloat x = GLfloat(start_x);
|
||||
GLfloat y = GLfloat(start_y);
|
||||
|
@ -199,7 +199,7 @@ void RasterFont::printMultilineText(const char *text, double start_x, double sta
|
|||
u8 c = text[i];
|
||||
|
||||
if(c == '\n') {
|
||||
x = start_x;
|
||||
x = GLfloat(start_x);
|
||||
y -= delta_y + border_y;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue