blob: 8a7f0f8abb08f361f6c80171c8c8ca5b67011768 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/***********************************************************************
FONCTION :
----------
File OpenGl_togl_ration_window :
REMARQUES:
----------
HISTORIQUE DES MODIFICATIONS :
--------------------------------
xx-xx-xx : xxx ; Creation.
02-07-96 : FMN ; Suppression WSWSHeight et WSWSWidth
05-02-97 : FMN ; Suppression de OpenGl_tgl_vis.h
************************************************************************/
#define IMP100701 /* GG Prevent window resizing on when redraw
in a pixmap
*/
/*----------------------------------------------------------------------*/
/*
* Includes
*/
#include <OpenGl_tgl_all.hxx>
#include <InterfaceGraphic_Graphic3d.hxx>
#include <InterfaceGraphic_Visual3d.hxx>
#include <OpenGl_cmn_varargs.hxx>
#include <OpenGl_tsm_ws.hxx>
#include <OpenGl_tgl_subrvis.hxx>
void EXPORT
call_togl_ratio_window
(
CALL_DEF_VIEW * aview
)
{
CMN_KEY_DATA k;
#ifdef IMP100701
if( aview->DefBitmap.bitmap ) return;
#endif
call_subr_resize( aview );
k.ldata = ( Tint )aview->DefWindow.dx;
TsmSetWSAttri( aview->WsId, WSWidth, &k );
k.ldata = ( Tint )aview->DefWindow.dy;
TsmSetWSAttri( aview->WsId, WSHeight, &k );
return;
}
|