Skip to content

Commit b56d5bd

Browse files
authored
Add GPU state globals and update comments
1 parent 4dc77a8 commit b56d5bd

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/win/win_helpers.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <Windows.h>
4+
#include "gpu/gpu_state.h"
45

56
// Tray constants
67
constexpr UINT WM_TRAY = WM_USER + 1;
@@ -11,10 +12,12 @@ constexpr UINT ID_EXIT = 1002;
1112
constexpr UINT ID_TOGGLE_RENDER_GPU = 2001;
1213
constexpr UINT ID_RESTART_GPU_DRIVER = 2002;
1314

14-
// Provided by main.cpp
15-
extern bool g_forceRenderGpu;
15+
// Globals from main.cpp
16+
extern GpuState g_displayGpuState;
17+
extern GpuState g_renderGpuState;
18+
extern bool g_forceRenderGpu;
1619

17-
// Provided by main.cpp
20+
// Refresh function from main.cpp
1821
void RefreshGpuState(HWND hwnd);
1922

2023
// Window procedure

0 commit comments

Comments
 (0)