source: trunk/SRC/ToBeReviewed/PLOTS/DIVERS/givewindowsize.pro @ 369

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
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;-
22FUNCTION givewindowsize
23;
24  compile_opt idl2, strictarrsubs
25;
26@cm_4ps
27IF NOT keyword_set(key_forgetold) THEN BEGIN
28@updatenew
29ENDIF
30;------------------------------------------------------------
31;
32   dimensions = get_screen_size(RESOLUTION=resolution)
33   coef = floor(1./resolution[0])
34   if NOT keyword_set(windowsize_scale) then BEGIN
35     windowsize_scale = 1.
36     IF NOT keyword_set(key_forgetold) THEN BEGIN
37     @updateold
38     ENDIF
39   ENDIF
40   coef = windowsize_scale * coef
41;
42    mipgsz = min(page_size, max = mapgsz)
43;
44    xsize = coef * (mipgsz*key_portrait + mapgsz*(1-key_portrait))
45    ysize = coef * (mipgsz*(1-key_portrait) + mapgsz*key_portrait)
46;
47   return, [xsize, ysize]
48end
Note: See TracBrowser for help on using the repository browser.