Dear All,
It'z just my programming bug..
This line,
> DefaultScreen(XtDisplay(top)), &dot_clock, modes)) {
should be modified to
> DefaultScreen(XtDisplay(top)), &dot_clock, &modes)) {
and works.
Tyrone
在 2002 二月 19 星期二 13:05,您寫道:
> Hi,
>
> I'm new to XF86 library. I want to get all the available modes for my
> display card. I try to use XF86VidModeGetAllModeLines.and check that the
> modes' count is right, but the details for each mode are wrong. I got
> something like Resolution = 51400x
>
> Would anybody know the reason?
>
> Here is my code
>
> XF86VidModeModeInfo **modes;
> Widget top;
> ...
> if (!XF86VidModeGetAllModeLines(XtDisplay (top),
> DefaultScreen(XtDisplay(top)), &dot_clock, modes)) {
> fprintf(stderr, "Fail to get all mode lines.");
> else {
> printf("count=%d\n",dot_clock);
> for (i=0;modes[i] != NULL ;i++) {
> printf("Resolution:
> %4dx%4d\n",modes[i]->hdisplay,modes[i]->vdisplay);
> }
> ...
>
> I would appreciate for any feedak/help. Thank you.
>
>
> Tyrone _______________________________________________
> Newbie mailing list
> [EMAIL PROTECTED]
> *** To unsubscribe , or change message options, see:
> http://XFree86.Org/mailman/listinfo/newbie
_______________________________________________
Newbie mailing list
[EMAIL PROTECTED]
*** To unsubscribe , or change message options, see:
http://XFree86.Org/mailman/listinfo/newbie