mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-31 23:34:36 +00:00
Turn a bunch of variables static
This commit is contained in:
parent
25680ec8a6
commit
9c2813a757
@ -22,13 +22,12 @@ uint32_t g_connector_id;
|
||||
int g_drm_fd;
|
||||
uint32_t g_crtc_id;
|
||||
|
||||
drmModeCrtc *g_orig_crtc;
|
||||
|
||||
static drmModeCrtc *g_orig_crtc;
|
||||
struct pollfd g_drm_fds;
|
||||
|
||||
drmModeRes *g_drm_resources;
|
||||
static drmModeRes *g_drm_resources;
|
||||
drmModeConnector *g_drm_connector;
|
||||
drmModeEncoder *g_drm_encoder;
|
||||
static drmModeEncoder *g_drm_encoder;
|
||||
drmModeModeInfo *g_drm_mode;
|
||||
|
||||
drmEventContext g_drm_evctx;
|
||||
@ -175,4 +174,7 @@ void drm_free(void)
|
||||
if (g_drm_resources)
|
||||
drmModeFreeResources(g_drm_resources);
|
||||
|
||||
g_drm_encoder = NULL;
|
||||
g_drm_connector = NULL;
|
||||
g_drm_resources = NULL;
|
||||
}
|
||||
|
@ -35,10 +35,7 @@ extern uint32_t g_crtc_id;
|
||||
|
||||
struct pollfd g_drm_fds;
|
||||
|
||||
extern drmModeCrtc *g_orig_crtc;
|
||||
extern drmModeRes *g_drm_resources;
|
||||
extern drmModeConnector *g_drm_connector;
|
||||
extern drmModeEncoder *g_drm_encoder;
|
||||
extern drmModeModeInfo *g_drm_mode;
|
||||
|
||||
extern drmEventContext g_drm_evctx;
|
||||
|
@ -301,9 +301,6 @@ static void free_drm_resources(gfx_ctx_drm_egl_data_t *drm)
|
||||
|
||||
drm->g_gbm_surface = NULL;
|
||||
drm->g_gbm_dev = NULL;
|
||||
g_drm_encoder = NULL;
|
||||
g_drm_connector = NULL;
|
||||
g_drm_resources = NULL;
|
||||
g_drm_fd = -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user