From 16adbab5d42f6ed325ed50e44ef3106d9ea34840 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 13 Aug 2021 19:52:30 -0400 Subject: [PATCH] [client] all: remove needless initalization --- client/renderers/EGL/egl.c | 2 +- client/src/core.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/renderers/EGL/egl.c b/client/renderers/EGL/egl.c index cfe9443e..0a82f985 100644 --- a/client/renderers/EGL/egl.c +++ b/client/renderers/EGL/egl.c @@ -303,7 +303,7 @@ static void egl_calc_mouse_size(struct Inst * this) if (!this->formatValid) return; - int w = 0, h = 0; + int w, h; switch(this->format.rotate) { diff --git a/client/src/core.c b/client/src/core.c index 04e39cbd..89491f65 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -166,8 +166,8 @@ void core_updatePositionInfo(void) if (!g_state.haveSrcSize) goto done; - float srcW = 0.0f; - float srcH = 0.0f; + float srcW; + float srcH; switch(g_params.winRotate) {