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