title: How to scale primitives similar to Imgui?
body: <p>I would like my renderer to act similar to imgui. 
  What ever size imgui application has, imgui widget window size do not change.</p>
  
  <p>that is how imgui looks like when resolution is 1280x720 </p>
  
  <p><a href="https://i.stack.imgur.com/P5Qmf.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>and that is how it looks when resolution is 1920x1017</p>
  
  <p><a href="https://i.stack.imgur.com/1RKkE.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>primitives are all the time the same size</p>
  
  <p>in my application resizing a window causes different sides to be different thickness or unpleasant phenomena. </p>
  
  <p>my app unfilled rect 1280x720</p>
  
  <p><a href="https://i.stack.imgur.com/NVuKO.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>my app the same rect 1920x1017</p>
  
  <p><a href="https://i.stack.imgur.com/ut7ln.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>as you can see higher resolution causes in this case bottom side of unfilled rect to be different thickness then the other sides (it may not be shown in a photo, but in a screen it is shown and it is very annoying). </p>
  
  <p>imgui has not got this problem. My app renderer is almost the same (without few advanced options).</p>
  
  <p>How could I implement that? Why does it work like this?
  I asked imgui creator, but he told me it is not about imgui and he cannot help. </p>