|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: D T
Length: 714 (0x2ca)
Types: TextFile
Names: »DisplaySize.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
└─⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z«
└─⟦2109abc41⟧
└─⟦this⟧ »./X.V10R4/Xlib/DisplaySize.c«
#include <X/mit-copyright.h>
/* $Header: DisplaySize.c,v 10.3 86/02/01 15:29:08 tony Rel $ */
/* Copyright Massachusetts Institute of Technology 1985 */
#include "XlibInternal.h"
int DisplayWidth()
{
register Display *dpy = _XlibCurrentDisplay;
WindowInfo rootinfo;
if (dpy->width == 0 || dpy->height == 0) {
XQueryWindow(RootWindow, &rootinfo);
dpy->width = rootinfo.width;
dpy->height = rootinfo.height;
}
return (dpy->width);
}
int DisplayHeight()
{
register Display *dpy = _XlibCurrentDisplay;
WindowInfo rootinfo;
if (dpy->width == 0 || dpy->height == 0) {
XQueryWindow(RootWindow, &rootinfo);
dpy->width = rootinfo.width;
dpy->height = rootinfo.height;
}
return (dpy->height);
}