mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
Just doing /client resolution should tell you current resolution (thanks masoncb)
This commit is contained in:
parent
b437e8289b
commit
19520c205d
@ -371,7 +371,7 @@ static struct ChatCommand RenderTypeCommand = {
|
||||
static void ResolutionCommand_Execute(const String* args, int argsCount) {
|
||||
int width, height;
|
||||
if (argsCount < 2) {
|
||||
Chat_AddRaw("&e/client: &cYou didn't specify width and height");
|
||||
Chat_Add2("&e/client: &fCurrent resolution is %i x %i", &Window_ClientBounds.Width, &Window_ClientBounds.Height);
|
||||
} else if (!Convert_ParseInt(&args[0], &width) || !Convert_ParseInt(&args[1], &height)) {
|
||||
Chat_AddRaw("&e/client: &cWidth and height must be integers.");
|
||||
} else if (width <= 0 || height <= 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user