mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fixed some type conversion warnings in VC. Mostly float <-> int and bool <-> int.
This commit is contained in:
@@ -146,11 +146,14 @@ namespace opengl
|
||||
{
|
||||
strategy = NULL;
|
||||
|
||||
float w = static_cast<float>(width);
|
||||
float h = static_cast<float>(height);
|
||||
|
||||
// world coordinates
|
||||
vertices[0].x = 0; vertices[0].y = 0;
|
||||
vertices[1].x = 0; vertices[1].y = height;
|
||||
vertices[2].x = width; vertices[2].y = height;
|
||||
vertices[3].x = width; vertices[3].y = 0;
|
||||
vertices[1].x = 0; vertices[1].y = h;
|
||||
vertices[2].x = w; vertices[2].y = h;
|
||||
vertices[3].x = w; vertices[3].y = 0;
|
||||
|
||||
// texture coordinates
|
||||
vertices[0].s = 0; vertices[0].t = 1;
|
||||
|
||||
Reference in New Issue
Block a user