From 0b15f8fe2d86d6cf6460a10e1ce828b58a48c4d5 Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Tue, 13 Jun 2000 13:59:21 +0000
Subject: [PATCH] Modify TPaveVar replacing Coord_t by Double_t

git-svn-id: http://root.cern.ch/svn/root/trunk@189 27541ba8-7e3a-0410-8455-c3a389f83636
---
 gl/src/TGLKernel.cxx        |  4 ++--
 treeviewer/inc/TPaveVar.h   |  4 ++--
 treeviewer/src/TPaveVar.cxx | 12 ++++++------
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/gl/src/TGLKernel.cxx b/gl/src/TGLKernel.cxx
index 220ea72d62f..23a2aca57aa 100644
--- a/gl/src/TGLKernel.cxx
+++ b/gl/src/TGLKernel.cxx
@@ -1,4 +1,4 @@
-// @(#)root/gl:$Name:  $:$Id: TGLKernel.cxx,v 1.1.1.1 2000/05/16 17:00:47 rdm Exp $
+// @(#)root/gl:$Name:  $:$Id: TGLKernel.cxx,v 1.2 2000/06/05 07:28:06 brun Exp $
 // Author: Valery Fine(fine@vxcern.cern.ch)   05/03/97
 
 /*************************************************************************
@@ -493,7 +493,7 @@ void TGLKernel::PaintGLPointsObject(const TPoints3DABC *points, Option_t *option
                        ,GLfloat(points->GetY(i))
                        ,GLfloat(points->GetZ(i)));
       glEnd();
-    } while ((mode=GL_POINTS) && pass);
+    } while ((mode==GL_POINTS) && pass);
 }
 
 //______________________________________________________________________________
diff --git a/treeviewer/inc/TPaveVar.h b/treeviewer/inc/TPaveVar.h
index d53aacdc177..619146cc3e7 100644
--- a/treeviewer/inc/TPaveVar.h
+++ b/treeviewer/inc/TPaveVar.h
@@ -1,4 +1,4 @@
-// @(#)root/treeviewer:$Name$:$Id$
+// @(#)root/treeviewer:$Name:  $:$Id: TPaveVar.h,v 1.1.1.1 2000/05/16 17:00:45 rdm Exp $
 // Author: Rene Brun   08/12/98
 
 /*************************************************************************
@@ -39,7 +39,7 @@ public:
         enum { kBranchObject = BIT(15) };
 
         TPaveVar();
-        TPaveVar(Coord_t x1, Coord_t y1,Coord_t x2 ,Coord_t y2, const char *label, TTreeViewer *viewer);
+        TPaveVar(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, const char *label, TTreeViewer *viewer);
         TPaveVar(const TPaveVar &PaveVar);
         virtual      ~TPaveVar();
                 void  Copy(TObject &PaveVar);
diff --git a/treeviewer/src/TPaveVar.cxx b/treeviewer/src/TPaveVar.cxx
index 379bf4ef12b..137a3861709 100644
--- a/treeviewer/src/TPaveVar.cxx
+++ b/treeviewer/src/TPaveVar.cxx
@@ -1,4 +1,4 @@
-// @(#)root/treeviewer:$Name$:$Id$
+// @(#)root/treeviewer:$Name:  $:$Id: TPaveVar.cxx,v 1.1.1.1 2000/05/16 17:00:45 rdm Exp $
 // Author: Rene Brun   08/12/98
 /*************************************************************************
  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
@@ -38,7 +38,7 @@ TPaveVar::TPaveVar(): TPaveLabel()
 }
 
 //______________________________________________________________________________
-TPaveVar::TPaveVar(Coord_t x1, Coord_t y1,Coord_t x2, Coord_t  y2, const char *label, TTreeViewer *viewer)
+TPaveVar::TPaveVar(Double_t x1, Double_t y1,Double_t x2, Double_t  y2, const char *label, TTreeViewer *viewer)
            :TPaveLabel(x1,y1,x2,y2,label,"br")
 {
 //*-*-*-*-*-*-*-*-*-*-*PaveVar normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
@@ -279,10 +279,10 @@ again:
 
       // In case pave coordinates have been modified, recompute NDC coordinates
       {
-         Float_t dpx  = gPad->GetX2() - gPad->GetX1();
-         Float_t dpy  = gPad->GetY2() - gPad->GetY1();
-         Float_t xp1  = gPad->GetX1();
-         Float_t yp1  = gPad->GetY1();
+         Double_t dpx  = gPad->GetX2() - gPad->GetX1();
+         Double_t dpy  = gPad->GetY2() - gPad->GetY1();
+         Double_t xp1  = gPad->GetX1();
+         Double_t yp1  = gPad->GetY1();
          fX1NDC = (fX1-xp1)/dpx;
          fY1NDC = (fY1-yp1)/dpy;
          fX2NDC = (fX2-xp1)/dpx;
-- 
GitLab