Checking whether a mode is supported or not seems like a reasonable mechanism to offer. However, I'm not sure if it's so useful. :D
love.window.getModes returns the supported fullscreen modes, so surely checking whether a fullscreen mode is supported using
checkMode is useless.
So what about windowed modes? Let's say the user can pick their own window size, and you want to check if it will work.
checkMode seems like it would be useful for this, however there are two problems:
setModereturns whether it was successful or not. If the user enters something which isn't supported, the return value of
setModecan be checked. (I've heard that
setModeisn't perfect in this regard, so if this is the case I suggest that
checkModedoes so it is perfect.)
checkModewill return true even if the specified dimensions are beyond the dimensions the screen. For example,
love.window.checkMode(1000000000, 1000000000)returns true for me.