in my mirc (v7.15) my windows are always maximized so an @window shows up maximized too
I did /window -pz @lag
in a status i did //echo -a $window(@lag).w $window(@lag).h
output: 520 403
in that same status i replaced @lag with $active
output: 643 579
this is kinda annoying when you want to draw on the picwin based on the size it is and have no clue what it would be in a maximized state. I needed to draw a line across the window from the center on the y axis from 0 to w on the x axis, and found this out when the line wasn't center, nor did it span the whole @window
I thought i could cheat since the $window(@window) functions were messing up so I decided to use $window(-3)
doing the following lines:
var %h = $window(-3).dh / 2 , %w = $window(-3).dw / 2
drawline @lag 1 1 0 %h $window(-3).dw %h
drawline @lag 1 1 %w 0 %w $window(-3).dh
I discovered that the window drawing area was actually locked to what $window(@lag) was telling me GRR!!!
screenshot: