Lines Matching defs:height

149     const int length = image->width * image->height * 4;
175 for (int i = 0; i < image->width * image->height; i++, source += 4)
188 image->height,
201 int width, int height)
211 wp_viewport_set_destination(edge->viewport, width, height);
215 wl_region_add(region, 0, 0, width, height);
241 GLFW_BORDER_SIZE, window->wl.height + GLFW_CAPTION_HEIGHT);
245 GLFW_BORDER_SIZE, window->wl.height + GLFW_CAPTION_HEIGHT);
248 -GLFW_BORDER_SIZE, window->wl.height,
309 wl_region_add(region, 0, 0, window->wl.width, window->wl.height);
319 window->wl.fbHeight = (window->wl.height * window->wl.scalingNumerator) / 120;
324 window->wl.fbHeight = window->wl.height * window->wl.bufferScale;
341 static GLFWbool resizeWindow(_GLFWwindow* window, int width, int height)
344 height = _glfw_max(height, 1);
346 if (width == window->wl.width && height == window->wl.height)
350 window->wl.height = height;
358 window->wl.height);
370 window->wl.height + GLFW_CAPTION_HEIGHT);
377 window->wl.height + GLFW_CAPTION_HEIGHT);
381 -GLFW_BORDER_SIZE, window->wl.height);
561 int32_t height,
589 if (width && height)
594 window->wl.pending.height =
595 _glfw_max(0, height - GLFW_BORDER_SIZE - GLFW_CAPTION_HEIGHT);
600 window->wl.pending.height = height;
606 window->wl.pending.height = window->wl.height;
650 int height = window->wl.pending.height;
656 const float aspectRatio = (float) width / (float) height;
659 height = width / targetRatio;
661 width = height * targetRatio;
665 if (resizeWindow(window, width, height))
667 _glfwInputWindowSize(window, window->wl.width, window->wl.height);
695 int width, height;
713 if (!libdecor_configuration_get_content_size(config, frame, &width, &height))
716 height = window->wl.height;
723 const float aspectRatio = (float) width / (float) height;
726 height = width / targetRatio;
728 width = height * targetRatio;
732 struct libdecor_state* frameState = libdecor_state_new(width, height);
762 if (resizeWindow(window, width, height))
764 _glfwInputWindowSize(window, window->wl.width, window->wl.height);
818 libdecor_state_new(window->wl.width, window->wl.height);
908 minheight = maxheight = window->wl.height;
1038 window->wl.height = wndconfig->height;
1040 window->wl.fbHeight = wndconfig->height;
1062 window->wl.height);
1108 cursorWayland->height = image->height;
1120 cursorWayland->width, cursorWayland->height);
1522 wl_surface_damage(surface, 0, 0, image->width, image->height);
2259 void _glfwGetWindowSizeWayland(_GLFWwindow* window, int* width, int* height)
2263 if (height)
2264 *height = window->wl.height;
2267 void _glfwSetWindowSizeWayland(_GLFWwindow* window, int width, int height)
2275 if (!resizeWindow(window, width, height))
2281 libdecor_state_new(window->wl.width, window->wl.height);
2317 int width = window->wl.width, height = window->wl.height;
2321 const float aspectRatio = (float) width / (float) height;
2324 height /= targetRatio;
2329 if (resizeWindow(window, width, height))
2334 libdecor_state_new(window->wl.width, window->wl.height);
2339 _glfwInputWindowSize(window, window->wl.width, window->wl.height);
2346 void _glfwGetFramebufferSizeWayland(_GLFWwindow* window, int* width, int* height)
2350 if (height)
2351 *height = window->wl.fbHeight;
2508 int width, int height,
2514 _glfwSetWindowSizeWayland(window, width, height);
2527 _glfwSetWindowSizeWayland(window, width, height);
2758 cursor->wl.height = image->height;