dtprintinfo: Use 64-bit values for XtVaGetValues() pointers

XtArgVal should be a type that encompasses XtPointer
and long integer types. In the X.org implementation
it is currently defined as (long).

Don't use (unsigned int *) instead of (Window *).
This commit is contained in:
Marcin Cieslak
2012-09-24 03:15:03 +02:00
committed by Jon Trulson
parent fc0f1ff697
commit df1da3432e
3 changed files with 10 additions and 6 deletions

View File

@@ -454,7 +454,7 @@ IconClassRec iconClassRec =
},
{
/* icon_class record */
(int) NULL, /* extension */
0, /* extension */
}
};
@@ -1052,6 +1052,7 @@ CalculateSize(
)
{
unsigned int width, height, junk;
Window junkwin;
int x, y;
Boolean show_fields = False;
Dimension _width;
@@ -1060,7 +1061,7 @@ CalculateSize(
{
if (Pixmap(w) != XmUNSPECIFIED_PIXMAP)
{
XGetGeometry(XtDisplay(w), Pixmap(w), (Window *) &junk,
XGetGeometry(XtDisplay(w), Pixmap(w), &junkwin,
(int *) &junk, (int *) &junk, &width, &height, &junk, &junk);
PixmapWidth(w) = (Dimension) width;
PixmapHeight(w) = (Dimension) height;
@@ -1361,7 +1362,7 @@ CalculateSize(
{
Dimension x_offset, y_offset;
XGetGeometry(XtDisplay(w), StatePixmap(w), (Window *) &junk,
XGetGeometry(XtDisplay(w), StatePixmap(w), &junkwin,
(int *) &junk, (int *) &junk, &width, &height, &junk, &junk);
StatePixmapWidth(w) = (Dimension) width;
StatePixmapHeight(w) = (Dimension) height;