Last change
on this file since 37 was
37,
checked in by pinsard, 18 years ago
|
upgrade of PLOTS/DIVERS according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/ : files
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
741 bytes
|
Line | |
---|
1 | FUNCTION givewindowsize |
---|
2 | ; |
---|
3 | ;------------------------------------------------------------ |
---|
4 | ; include commons |
---|
5 | @cm_4ps |
---|
6 | IF NOT keyword_set(key_forgetold) THEN BEGIN |
---|
7 | @updatenew |
---|
8 | ENDIF |
---|
9 | ;------------------------------------------------------------ |
---|
10 | ; |
---|
11 | dimensions = get_screen_size(RESOLUTION=resolution) |
---|
12 | coef = floor(1./resolution[0]) |
---|
13 | if NOT keyword_set(windowsize_scale) then BEGIN |
---|
14 | windowsize_scale = 1. |
---|
15 | IF NOT keyword_set(key_forgetold) THEN BEGIN |
---|
16 | @updateold |
---|
17 | ENDIF |
---|
18 | ENDIF |
---|
19 | coef = windowsize_scale * coef |
---|
20 | ; |
---|
21 | mipgsz = min(page_size, max = mapgsz) |
---|
22 | ; |
---|
23 | xsize = coef * (mipgsz*key_portrait + mapgsz*(1-key_portrait)) |
---|
24 | ysize = coef * (mipgsz*(1-key_portrait) + mapgsz*key_portrait) |
---|
25 | ; |
---|
26 | return, [xsize, ysize] |
---|
27 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.