vector: small bug

This commit is contained in:
dinkc64 2018-08-11 12:27:45 +00:00
parent 95eb5dc8b6
commit 955b84f2e5

View File

@ -49,11 +49,13 @@ void vector_set_scale(INT32 x, INT32 y)
{
if (x == 0 || x == -1)
vector_scaleX = 1.00;
else
vector_scaleX = (float)nScreenWidth / x;
if (y == 0 || y == -1)
vector_scaleY = 1.00;
vector_scaleX = (float)nScreenWidth / x;
vector_scaleY = (float)nScreenHeight / y;
else
vector_scaleY = (float)nScreenHeight / y;
}
void vector_add_point(INT32 x, INT32 y, INT32 color, INT32 intensity)