From c3a143732c62b75f5c4cea7373c40be8f3662a3f Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 10 Aug 2021 13:10:51 +1000 Subject: [PATCH] [client] egl: cosmetics --- client/renderers/EGL/desktop.c | 8 ++++---- client/renderers/EGL/desktop.h | 2 +- client/renderers/EGL/egl.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/renderers/EGL/desktop.c b/client/renderers/EGL/desktop.c index 52d7f138..4f2cfcac 100644 --- a/client/renderers/EGL/desktop.c +++ b/client/renderers/EGL/desktop.c @@ -94,7 +94,7 @@ struct EGL_Desktop }; // forwards -void egl_desktop_toggle_nv(int key, void * opaque); +void toggleNV(int key, void * opaque); static bool egl_initDesktopShader( struct DesktopShader * shader, @@ -179,7 +179,7 @@ bool egl_desktopInit(EGL * egl, EGL_Desktop ** desktop_, EGLDisplay * display, return false; } - app_registerKeybind(KEY_N, egl_desktop_toggle_nv, desktop, + app_registerKeybind(KEY_N, toggleNV, desktop, "Toggle night vision mode"); desktop->nvMax = option_get_int("egl", "nvGainMax"); @@ -226,7 +226,7 @@ bool egl_desktopInit(EGL * egl, EGL_Desktop ** desktop_, EGLDisplay * display, return true; } -void egl_desktop_toggle_nv(int key, void * opaque) +void toggleNV(int key, void * opaque) { EGL_Desktop * desktop = (EGL_Desktop *)opaque; if (desktop->nvGain++ == desktop->nvMax) @@ -428,7 +428,7 @@ bool egl_desktopSetup(EGL_Desktop * desktop, const LG_RendererFormat format) return true; } -bool egl_desktop_update(EGL_Desktop * desktop, const FrameBuffer * frame, int dmaFd, +bool egl_desktopUpdate(EGL_Desktop * desktop, const FrameBuffer * frame, int dmaFd, const FrameDamageRect * damageRects, int damageRectsCount) { if (desktop->useDMA && dmaFd >= 0) diff --git a/client/renderers/EGL/desktop.h b/client/renderers/EGL/desktop.h index 7c70b3bc..9b862458 100644 --- a/client/renderers/EGL/desktop.h +++ b/client/renderers/EGL/desktop.h @@ -43,7 +43,7 @@ void egl_desktopFree(EGL_Desktop ** desktop); void egl_desktopConfigUI(EGL_Desktop * desktop); bool egl_desktopSetup (EGL_Desktop * desktop, const LG_RendererFormat format); -bool egl_desktop_update(EGL_Desktop * desktop, const FrameBuffer * frame, int dmaFd, +bool egl_desktopUpdate(EGL_Desktop * desktop, const FrameBuffer * frame, int dmaFd, const FrameDamageRect * damageRects, int damageRectsCount); void egl_desktopResize(EGL_Desktop * desktop, int width, int height); bool egl_desktopRender(EGL_Desktop * desktop, const float x, const float y, diff --git a/client/renderers/EGL/egl.c b/client/renderers/EGL/egl.c index be9a0305..d67d89a8 100644 --- a/client/renderers/EGL/egl.c +++ b/client/renderers/EGL/egl.c @@ -551,7 +551,7 @@ static bool egl_onFrame(LG_Renderer * renderer, const FrameBuffer * frame, int d struct Inst * this = UPCAST(struct Inst, renderer); uint64_t start = nanotime(); - if (!egl_desktop_update(this->desktop, frame, dmaFd, damageRects, damageRectsCount)) + if (!egl_desktopUpdate(this->desktop, frame, dmaFd, damageRects, damageRectsCount)) { DEBUG_INFO("Failed to to update the desktop"); return false;