Global: Fix some type conversion warnings.

Hidden by some warning disables.
This commit is contained in:
Unknown W. Brackets committed 2022-01-30 16:09:33 -08:00
1 parent 5e185f3d87
commit 3df6cb704f
18 files changed
+41 -39

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ void DrawBuffer::RectOutline(float x, float y, float w, float h, uint32_t color,
void DrawBuffer::MultiVGradient(float x, float y, float w, float h, GradientStop *stops, int numStops) {
for (int i = 0; i < numStops - 1; i++) {
float t0 = stops[i].t, t1 = stops[i+1].t;
uint32_t c0 = stops[i].t, c1 = stops[i+1].t;
uint32_t c0 = stops[i].color, c1 = stops[i+1].color;
RectVGradient(x, y + h * t0, w, h * (t1 - t0), c0, c1);
}
}