mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(console): add gxRefresh var to RegisterGxCVars
This commit is contained in:
parent
d2af090b55
commit
f2b63128d4
@ -12,6 +12,7 @@ static CGxDevice* s_device;
|
||||
static CVar* s_cvGxColorBits;
|
||||
static CVar* s_cvGxDepthBits;
|
||||
static CVar* s_cvGxMaximize;
|
||||
static CVar* s_cvGxRefresh;
|
||||
static CVar* s_cvGxResolution;
|
||||
static CVar* s_cvGxWidescreen;
|
||||
static CVar* s_cvGxWindow;
|
||||
@ -36,6 +37,11 @@ bool CVGxMaximizeCallback(CVar*, const char*, const char*, void*) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CVGxRefreshCallback(CVar*, const char*, const char*, void*) {
|
||||
// TODO
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CVGxResolutionCallback(CVar*, const char*, const char*, void*) {
|
||||
// TODO
|
||||
return true;
|
||||
@ -130,7 +136,18 @@ void RegisterGxCVars() {
|
||||
false
|
||||
);
|
||||
|
||||
// TODO s_cvGxRefresh
|
||||
s_cvGxRefresh = CVar::Register(
|
||||
"gxRefresh",
|
||||
"refresh rate",
|
||||
0x1 | 0x2,
|
||||
"75",
|
||||
&CVGxRefreshCallback,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
);
|
||||
|
||||
// TODO s_cvGxTripleBuffer
|
||||
// TODO s_cvGxApi
|
||||
// TODO s_cvGxVSync
|
||||
|
||||
Loading…
Reference in New Issue
Block a user