mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 12:30:32 +00:00
- fixed compilation warning reported by MSVC
src\r_videoscale.cpp(105): warning C4244: 'initializing': conversion from 'float' to 'int', possible loss of data # Conflicts: # src/r_videoscale.cpp
This commit is contained in:
parent
792871a380
commit
0ee488633b
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ bool ViewportIsScaled43()
|
||||||
|
|
||||||
void R_ShowCurrentScaling()
|
void R_ShowCurrentScaling()
|
||||||
{
|
{
|
||||||
int x1 = screen->GetWidth(), y1 = screen->GetHeight(), x2 = x1 * vid_scalefactor, y2 = y1 * vid_scalefactor;
|
int x1 = screen->GetWidth(), y1 = screen->GetHeight(), x2 = int(x1 * vid_scalefactor), y2 = int(y1 * vid_scalefactor);
|
||||||
Printf("Current Scale: %f\n", (float)(vid_scalefactor));
|
Printf("Current Scale: %f\n", (float)(vid_scalefactor));
|
||||||
Printf("Real resolution: %i x %i\nEmulated resolution: %i x %i\n", x1, y1, x2, y2);
|
Printf("Real resolution: %i x %i\nEmulated resolution: %i x %i\n", x1, y1, x2, y2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue