mirror of https://github.com/aap/librw.git
Fix additional MinGW warnings
This commit is contained in:
parent
da28d103c9
commit
f2891e006b
|
@ -1,5 +1,5 @@
|
|||
#ifdef RW_D3D9
|
||||
#define NOMINMAX
|
||||
#define NOMINMAX 1
|
||||
#include <d3d9.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -465,11 +465,11 @@ texfunc(Color t, Color f)
|
|||
a = srTexUseAlpha ? t.a : f.a;
|
||||
break;
|
||||
}
|
||||
r = clamp(r);
|
||||
g = clamp(g);
|
||||
b = clamp(b);
|
||||
a = clamp(a);
|
||||
Color v = { r, g, b, a };
|
||||
Color v;
|
||||
v.r = clamp(r);
|
||||
v.g = clamp(g);
|
||||
v.b = clamp(b);
|
||||
v.a = clamp(a);
|
||||
return v;
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ Draw(float timeDelta)
|
|||
static bool show_another_window = false;
|
||||
static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
|
||||
|
||||
rw::RGBA clearcol = { clear_color.x*255, clear_color.y*255, clear_color.z*255, clear_color.w*255 };
|
||||
rw::RGBA clearcol = rw::makeRGBA(clear_color.x*255, clear_color.y*255, clear_color.z*255, clear_color.w*255);
|
||||
Scene.camera->clear(&clearcol, rw::Camera::CLEARIMAGE|rw::Camera::CLEARZ);
|
||||
Scene.camera->beginUpdate();
|
||||
|
||||
|
|
Loading…
Reference in New Issue