Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
xengine
xengine-1.11-pi.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xengine-1.11-pi.patch of Package xengine
--- xengine.c +++ xengine.c 2000/01/25 23:41:51 @@ -26,7 +26,9 @@ #include "patchlevel.h" -#define PI 3.141592654 +#ifndef PI +#define PI 3.141592654 +#endif XtCallbackProc redraw_callback(); XtTimerCallbackProc Cylcle(); @@ -46,7 +48,7 @@ Arg args[10]; XtTranslations newTranslations; static XtActionsRec redrawActions[] = { - {"expose", (XtCallbackProc) redraw_callback}, + {"expose", (XtActionProc) redraw_callback}, }; static char *overrideTranslations = @@ -164,7 +166,7 @@ enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine))); /* Interval timer start */ - XtAddTimeOut(1, Cycle, NULL); + XtAddTimeOut(1, Cycle(), NULL); XtMainLoop(); } @@ -182,6 +184,10 @@ XtSetArg(args[0], XtNwidth, 0); XtSetArg(args[1], XtNheight, 0); XtSetValues(w, args, 2); +#if 1 + printf("xengine: XtNwidth:%d, XtNheight:%d\n", args[0], args[1]); +#endif + /* width = args[0].value; @@ -221,7 +227,7 @@ mean = 0.0; } mean += DrawEngine(); - XtAddTimeOut(1, Cycle, NULL); + XtAddTimeOut(1, Cycle(), NULL); } double
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor