Add TODO/FIXME notes

This commit is contained in:
twinaphex 2020-07-07 02:51:39 +02:00
parent 94e728ceda
commit 00518d3470
8 changed files with 19 additions and 11 deletions

View File

@ -27,6 +27,7 @@
#if defined(HAVE_DYNAMIC) && !defined(__WINRT__)
#include <dynamic/dylib.h>
/* TODO/FIXME - static globals */
static dylib_t d3dcompiler_dll;
static const char* d3dcompiler_dll_list[] = {
"D3DCompiler_47.dll", "D3DCompiler_46.dll", "D3DCompiler_45.dll", "D3DCompiler_44.dll",

View File

@ -19,6 +19,7 @@
#ifdef HAVE_DBUS
#include <dbus/dbus.h>
/* TODO/FIXME - static globals */
static DBusConnection* dbus_connection = NULL;
static unsigned int dbus_screensaver_cookie = 0;
#endif

View File

@ -21,6 +21,7 @@
#include "drm_common.h"
/* TODO/FIXME - globals */
struct pollfd g_drm_fds;
uint32_t g_connector_id = 0;

View File

@ -33,6 +33,7 @@
#include "../../verbosity.h"
#include "../../frontend/frontend_driver.h"
/* TODO/FIXME - globals */
bool g_egl_inited = false;
unsigned g_egl_major = 0;

View File

@ -46,6 +46,7 @@
#define VULKAN_EMULATE_MAILBOX
#endif
/* TODO/FIXME - static globals */
static dylib_t vulkan_library;
static VkInstance cached_instance_vk;
static VkDevice cached_device_vk;

View File

@ -230,10 +230,19 @@ typedef struct DISPLAYCONFIG_PATH_INFO_CUSTOM
typedef LONG (WINAPI *QUERYDISPLAYCONFIG)(UINT32, UINT32*, DISPLAYCONFIG_PATH_INFO_CUSTOM*, UINT32*, DISPLAYCONFIG_MODE_INFO_CUSTOM*, UINT32*);
typedef LONG (WINAPI *GETDISPLAYCONFIGBUFFERSIZES)(UINT32, UINT32*, UINT32*);
/* TODO/FIXME - globals */
bool g_win32_restore_desktop = false;
static bool taskbar_is_created = false;
bool g_win32_inited = false;
unsigned g_win32_resize_width = 0;
unsigned g_win32_resize_height = 0;
ui_window_win32_t main_window;
static HMONITOR win32_monitor_last;
static HMONITOR win32_monitor_all[MAX_MONITORS];
typedef struct win32_common_state
{
int pos_x;
@ -258,11 +267,6 @@ static win32_common_state_t win32_st =
false /* resized */
};
unsigned g_win32_resize_width = 0;
unsigned g_win32_resize_height = 0;
ui_window_win32_t main_window;
/* Power Request APIs */
#if !defined(_XBOX) && (_MSC_VER == 1310)
@ -310,9 +314,6 @@ typedef REASON_CONTEXT POWER_REQUEST_CONTEXT, *PPOWER_REQUEST_CONTEXT, *LPPOWER_
#define INT_PTR_COMPAT INT_PTR
#endif
static HMONITOR win32_monitor_last;
static HMONITOR win32_monitor_all[MAX_MONITORS];
bool win32_taskbar_is_created(void)
{
return taskbar_is_created;

View File

@ -59,6 +59,7 @@
#define V_DBLSCAN 0x20
/* TODO/FIXME - globals */
static XF86VidModeModeInfo desktop_mode;
static bool xdg_screensaver_available = true;
bool g_x11_entered = false;
@ -81,11 +82,11 @@ static XIC g_x11_xic;
static void x11_hide_mouse(Display *dpy, Window win)
{
static char bm_no_data[] = {0, 0, 0, 0, 0, 0, 0, 0};
Cursor no_ptr;
Pixmap bm_no;
XColor black, dummy;
Colormap colormap = DefaultColormap(dpy, DefaultScreen(dpy));
static char bm_no_data[] = {0, 0, 0, 0, 0, 0, 0, 0};
Colormap colormap = DefaultColormap(dpy, DefaultScreen(dpy));
if (!XAllocNamedColor(dpy, colormap, "black", &black, &dummy))
return;

View File

@ -30,7 +30,8 @@
#include "../../verbosity.h"
static XineramaScreenInfo *xinerama_query_screens(Display *dpy, int *num_screens)
static XineramaScreenInfo *xinerama_query_screens(
Display *dpy, int *num_screens)
{
int major, minor;