From fe59fdb39a7fde43d24adce2eac7a173359eacc8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 3 Aug 2020 15:49:44 +0200 Subject: [PATCH] Cleanups --- gfx/common/drm_common.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gfx/common/drm_common.c b/gfx/common/drm_common.c index 15af377eb2..da1f7feac4 100644 --- a/gfx/common/drm_common.c +++ b/gfx/common/drm_common.c @@ -22,20 +22,18 @@ #include "drm_common.h" /* TODO/FIXME - globals */ +drmEventContext g_drm_evctx; struct pollfd g_drm_fds; - uint32_t g_connector_id = 0; int g_drm_fd = 0; uint32_t g_crtc_id = 0; - drmModeCrtc *g_orig_crtc = NULL; - -static drmModeRes *g_drm_resources = NULL; drmModeConnector *g_drm_connector = NULL; -static drmModeEncoder *g_drm_encoder = NULL; drmModeModeInfo *g_drm_mode = NULL; -drmEventContext g_drm_evctx; +/* TODO/FIXME - static globals */ +static drmModeRes *g_drm_resources = NULL; +static drmModeEncoder *g_drm_encoder = NULL; /* Restore the original CRTC. */ void drm_restore_crtc(void)