Hi I am using the most basic HelloWorld
example:
#include <stdio.h>
#include <stdlib.h>
#include "GLFW/glfw3.h"
const int width = 960;
const int height = 640;
void error_callback(int error, const char* description) {
fputs(description, stderr);
}
int main() {
GLFWwindow* window;
glfwSetErrorCallback(error_callback);
if (!glfwInit()) {
exit(EXIT_FAILURE);
}
window = glfwCreateWindow(width, height, "Simple example", NULL, NULL);
if (!window) {
glfwTerminate();
exit(EXIT_FAILURE);
}
glfwMakeContextCurrent(window);
while (!glfwWindowShouldClose(window)) {
glfwWaitEvents();
glfwSwapBuffers(window);
}
glfwDestroyWindow(window);
glfwTerminate();
exit(EXIT_SUCCESS);
}
When the window is abruptly shaken between 2 monitors it sometimes changes size randomly (sometimes it grows, sometimes it shrinks). Is it kind of bug?
By the way softly moving between the 2 monitors has normal effect, and I saw this topic: link, my problem isn’t related to GLFW_SCALE_TO_MONITOR
.