Last change
on this file since 292 was
232,
checked in by pinsard, 17 years ago
|
improvements/corrections of some *.pro headers
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
840 bytes
|
Line | |
---|
1 | ;+ |
---|
2 | ; |
---|
3 | ; @file_comments |
---|
4 | ; |
---|
5 | ; @categories |
---|
6 | ; |
---|
7 | ; @returns |
---|
8 | ; |
---|
9 | ; @uses |
---|
10 | ; |
---|
11 | ; @restrictions |
---|
12 | ; |
---|
13 | ; @examples |
---|
14 | ; |
---|
15 | ; @history |
---|
16 | ; |
---|
17 | ; @version |
---|
18 | ; $Id$ |
---|
19 | ; |
---|
20 | ; @todo seb |
---|
21 | ;- |
---|
22 | ; |
---|
23 | FUNCTION givewindowsize |
---|
24 | ; |
---|
25 | compile_opt idl2, strictarrsubs |
---|
26 | ; |
---|
27 | @cm_4ps |
---|
28 | IF NOT keyword_set(key_forgetold) THEN BEGIN |
---|
29 | @updatenew |
---|
30 | ENDIF |
---|
31 | ;------------------------------------------------------------ |
---|
32 | ; |
---|
33 | dimensions = get_screen_size(RESOLUTION=resolution) |
---|
34 | coef = floor(1./resolution[0]) |
---|
35 | if NOT keyword_set(windowsize_scale) then BEGIN |
---|
36 | windowsize_scale = 1. |
---|
37 | IF NOT keyword_set(key_forgetold) THEN BEGIN |
---|
38 | @updateold |
---|
39 | ENDIF |
---|
40 | ENDIF |
---|
41 | coef = windowsize_scale * coef |
---|
42 | ; |
---|
43 | mipgsz = min(page_size, max = mapgsz) |
---|
44 | ; |
---|
45 | xsize = coef * (mipgsz*key_portrait + mapgsz*(1-key_portrait)) |
---|
46 | ysize = coef * (mipgsz*(1-key_portrait) + mapgsz*key_portrait) |
---|
47 | ; |
---|
48 | return, [xsize, ysize] |
---|
49 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.