15 #include "config_windisplay.h"
16 #include "winGraphicsPipe.h"
17 #include "winGraphicsWindow.h"
20 Configure(config_windisplay);
21 NotifyCategoryDef(windisplay,
"display");
23 ConfigureFn(config_windisplay) {
28 (
"responsive-minimized-fullscreen-window",
false);
31 (
"hold-keys-across-windows",
false,
32 PRC_DESC(
"Set this true to remember the current state of the keyboard while "
33 "the window focus is lost, or false to pretend the user is not "
34 "holding down any keys while the window focus is lost. In either "
35 "case it should accurately restore the correct keyboard state when "
36 "the window focus is regained."));
39 (
"do-vidmemsize-check",
true,
40 PRC_DESC(
"if true, use ddraw's GetAvailVidMem to fail if driver says "
41 "it has too little video mem"));
44 (
"auto-cpu-data",
false,
45 PRC_DESC(
"Set this true to automatically get the CPU data at start; false to "
46 "require an explicit call to pipe->lookup_cpu_data(). Setting this "
47 "true may slow down startup time by 1-2 seconds."));
51 PRC_DESC(
"Set this true to show ime texts on the chat panel and hide the "
52 "IME default windows. This is a mechanism to work around DX8/9 "
57 PRC_DESC(
"Set this true to hide ime windows."));
60 (
"request-dxdisplay-information",
false,
61 PRC_DESC(
"Setting this to true enables lumberingly slow and evil code at "
62 "start-up that creates a Direct3D window and subsequently fills up "
63 "up the video memory with dummy textures in order to find out how "
64 "much video memory there actually is. Leave this disabled unless "
65 "you have a specific need for this information and don't mind "
66 "having a slow start-up."));
70 PRC_DESC(
"The default behavior is for Panda3D to disable DPI-virtualization "
71 "that is introduced in Windows 8.1. Set this to false if you are "
72 "experiencing problems with this setting."));
75 (
"dpi-window-resize",
false,
76 PRC_DESC(
"Set this to true to let Panda3D resize the window according to the "
77 "DPI settings whenever the window is dragged to a monitor with "
78 "different DPI, or when the DPI setting is changed in the control "
79 "panel. Only available in Windows 8.1 and later, and requires "
80 "dpi-aware to be set as well."));
83 (
"swapbuffer-framelock",
false,
84 PRC_DESC(
"Set this true to enable HW swapbuffer frame-lock on 3dlabs cards"));
95 init_libwindisplay() {
96 static bool initialized =
false;
102 WinGraphicsPipe::init_type();
103 WinGraphicsWindow::init_type();
This is a convenience class to specialize ConfigVariable as a boolean type.