Changeset 898 for trunk/source/visualization/OpenGL/src/G4OpenGLXmViewer.cc
- Timestamp:
- Dec 5, 2008, 2:48:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLXmViewer.cc
r897 r898 126 126 borcol = XBlackPixelOfScreen (XtScreen(shell)); 127 127 128 fWinSize_x = fVP.GetWindowSizeHintX(); 129 fWinSize_y = fVP.GetWindowSizeHintY(); 130 G4int x_origin = fVP.GetWindowAbsoluteLocationHintX(DisplayWidth(dpy, vi -> screen)); 131 G4int y_origin = fVP.GetWindowAbsoluteLocationHintY(DisplayHeight(dpy, vi -> screen)); 132 128 133 XtVaSetValues (shell, 129 134 XtNvisual, vi -> visual, 130 XtNdepth, vi -> depth, 135 XtNdepth, vi -> depth, 131 136 XtNcolormap, cmap, 137 XtNwidth, fWinSize_x, 138 XtNheight, fWinSize_y, 139 XtNx, x_origin, 140 XtNy, y_origin, 132 141 XtNborderColor, &borcol, 133 142 XtNbackground, &bgnd, … … 593 602 // Once widget is realized (ie, associated with a created X window), we 594 603 // can bind the OpenGL rendering context to the window. 595 596 Dimension width, height;597 XtVaGetValues (glxarea,XmNwidth,&width,XmNheight,&height,NULL);598 fWinSize_x = (unsigned int) width;599 fWinSize_y = (unsigned int) height;600 604 601 605 win = XtWindow (glxarea);
Note: See TracChangeset
for help on using the changeset viewer.