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