Returns the index of the current resolution setting. For the dimensions of a resolution setting, use GetScreenResolutions()
.
See also Video functions.
Signature:
index
=
GetCurrentResolution()
Returns:
index
- Index of the current resolution setting (number
)
Examples:
-- Print the current resolution to chat local index = GetCurrentResolution(); local resolution = select(index, GetScreenResolutions()); print("Current resolution:", resolution);