# how to limit the GLUT window resize to a minimum size

**URL:** <https://community.khronos.org/t/how-to-limit-the-glut-window-resize-to-a-minimum-size/43516>\
**Category:** OpenGL: Advanced Coding\
**Created:** [November 15, 2006, 8:22am UTC](https://community.khronos.org/t/how-to-limit-the-glut-window-resize-to-a-minimum-size/43516 "2006-11-15T08:22:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yalmar](https://community.khronos.org/letter_avatar_proxy/v4/letter/y/ee59a6/32.png) [@yalmar](https://community.khronos.org/u/yalmar)\
**Post date:** [November 15, 2006, 8:22am UTC](https://community.khronos.org/t/how-to-limit-the-glut-window-resize-to-a-minimum-size/43516/1 "2006-11-15T08:22:00Z")

</div>

Hi All,

I need limit my GLUT window to a minimum size, for instance, width no less than 300px and the same for height, is it possible?

Thanks,

Yalmar

---

<div class="post-metadata">

**Author:** ![Bob](https://community.khronos.org/letter_avatar_proxy/v4/letter/b/ea666f/32.png) [@Bob](https://community.khronos.org/u/Bob)\
**Post date:** [November 15, 2006, 11:09am UTC](https://community.khronos.org/t/how-to-limit-the-glut-window-resize-to-a-minimum-size/43516/2 "2006-11-15T11:09:00Z")

</div>

In the reshape callback, call glutReshapeWindow if it’s too small.

---

<div class="post-metadata">

**Author:** ![yalmar](https://community.khronos.org/letter_avatar_proxy/v4/letter/y/ee59a6/32.png) [@yalmar](https://community.khronos.org/u/yalmar)\
**Post date:** [November 22, 2006, 12:07pm UTC](https://community.khronos.org/t/how-to-limit-the-glut-window-resize-to-a-minimum-size/43516/3 "2006-11-22T12:07:00Z")

</div>

Thanks, I did not know about this glut function.
