mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
- Added Lua scripts hud.open, inventory.create and inventory.remove - Window now resizes even if it is not focused
This commit is contained in:
parent
5faca685ec
commit
8e549fe806
11 changed files with 117 additions and 13 deletions
|
|
@ -72,11 +72,9 @@ bool Window::isFocused() {
|
|||
|
||||
void window_size_callback(GLFWwindow*, int width, int height) {
|
||||
if (width && height) {
|
||||
if (Window::isFocused()) {
|
||||
glViewport(0, 0, width, height);
|
||||
Window::width = width;
|
||||
Window::height = height;
|
||||
}
|
||||
glViewport(0, 0, width, height);
|
||||
Window::width = width;
|
||||
Window::height = height;
|
||||
|
||||
if (!Window::isFullscreen() && !Window::isMaximized()) {
|
||||
Window::getSettings()->width.set(width);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue