source: trunk/PLOTS/DIVERS/givewindowsize.pro @ 2

Last change on this file since 2 was 2, checked in by opalod, 22 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 387 bytes
Line 
1FUNCTION givewindowsize
2@common
3;
4   dimensions = get_screen_size(RESOLUTION=resolution)
5   coef = floor(1./resolution[0])
6   if NOT keyword_set(ccwindowsize) then ccwindowsize = 1
7   coef = ccwindowsize*coef
8;
9   xsize=coef*(petitfeuille*key_portrait+grandfeuille*(1-key_portrait))
10   ysize=coef*(petitfeuille*(1-key_portrait)+grandfeuille*key_portrait)
11;
12   return, [xsize, ysize]
13end
Note: See TracBrowser for help on using the repository browser.