summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-01-23 10:20:03 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-01-23 10:28:44 +0400
commit53a7a4019070e577b19e893531c18686d67d87ca (patch)
tree1efa3f73ff74d1071f546a281d97d19a50b9479b
parent5e88a10dc891e3693cab76533506af0425770901 (diff)
Rename `near` and `far`, reserved keywords on win32
Win32 has #define for those. Change variable names `near` and `far` to `_near` and `_far`. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r--src/spice-widget-egl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
index b40bebf..177ef59 100644
--- a/src/spice-widget-egl.c
+++ b/src/spice-widget-egl.c
@@ -67,16 +67,16 @@ static const char *spice_egl_fragment_src = \
";
static void apply_ortho(guint mproj, float left, float right,
- float bottom, float top, float near, float far)
+ float bottom, float top, float _near, float _far)
{
float a = 2.0f / (right - left);
float b = 2.0f / (top - bottom);
- float c = -2.0f / (far - near);
+ float c = -2.0f / (_far - _near);
float tx = - (right + left) / (right - left);
float ty = - (top + bottom) / (top - bottom);
- float tz = - (far + near) / (far - near);
+ float tz = - (_far + _near) / (_far - _near);
float ortho[16] = {
a, 0, 0, 0,