Re: Linux fullscreen support

Leon Hall <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <[email protected]>
Same thing but with the address:

address of fs_mode:     0x00007f13ca4224b0
size of fs_mode:        8
fs_mode->dotclock:        0
fs_mode->dot->hdisplay:   1024
fs_mode->dot->hsyncstart: 1048
fs_mode->dot->hsyncend:   1184
fs_mode->dot->htotal:     1344
fs_mode->dot->hskew:      0
fs_mode->dot->vdisplay:   768
fs_mode->dot->vsyncstart  771
fs_mode->dot->vsyncend    777
fs_mode->dot->vtotal      806
fs_mode->dot->flags       5
fs_mode->dot->privsize    0

address of wm_mode:     0x00007f13ca422488
size of wm_mode:        8
wm_mode->dotclock:        108000
wm_mode->dot->hdisplay:   1280
wm_mode->dot->hsyncstart: 1328
wm_mode->dot->hsyncend:   1440
wm_mode->dot->htotal:     1688
wm_mode->dot->hskew:      0
wm_mode->dot->vdisplay:   1024
wm_mode->dot->vsyncstart  1025
wm_mode->dot->vsyncend    1028
wm_mode->dot->vtotal      1066
wm_mode->dot->flags       10
wm_mode->dot->privsize    0


This certainly looks like it should be more than 8 bites (from 
xf86vmode.h):

typedef struct {
     unsigned int    dotclock;
     unsigned short    hdisplay;
     unsigned short    hsyncstart;
     unsigned short    hsyncend;
     unsigned short    htotal;
     unsigned short    hskew;
     unsigned short    vdisplay;
     unsigned short    vsyncstart;
     unsigned short    vsyncend;
     unsigned short    vtotal;
     unsigned int    flags;
     int            privsize;
#if defined(__cplusplus) || defined(c_plusplus)
     /* private is a C++ reserved word */
     INT32        *c_private;
#else
     INT32        *private;
#endif
} XF86VidModeModeInfo;


It may be some error in the code I'm using to print it out:

void csXExtF86VM::PrintModeInfo (XF86VidModeModeInfo *modeinfo, char 
mi_label [50])
{
   csPrintf("address of %s:     %p\n", mi_label, modeinfo);
   csPrintf("size of %s:        %d\n", mi_label, sizeof(modeinfo));
   csPrintf("%s->dotclock:        %u\n", mi_label, modeinfo->dotclock);
   csPrintf("%s->dot->hdisplay:   %hu\n", mi_label, modeinfo->hdisplay);
   csPrintf("%s->dot->hsyncstart: %hu\n", mi_label, modeinfo->hsyncstart);
   csPrintf("%s->dot->hsyncend:   %hu\n", mi_label, modeinfo->hsyncend);
   csPrintf("%s->dot->htotal:     %hu\n", mi_label, modeinfo->htotal);
   csPrintf("%s->dot->hskew:      %hu\n", mi_label, modeinfo->hskew);
   csPrintf("%s->dot->vdisplay:   %hu\n", mi_label, modeinfo->vdisplay);
   csPrintf("%s->dot->vsyncstart  %hu\n", mi_label, modeinfo->vsyncstart);
   csPrintf("%s->dot->vsyncend    %hu\n", mi_label, modeinfo->vsyncend);
   csPrintf("%s->dot->vtotal      %hu\n", mi_label, modeinfo->vtotal);
   csPrintf("%s->dot->flags       %hu\n", mi_label, modeinfo->flags);
   csPrintf("%s->dot->privsize    %d\n\n", mi_label, modeinfo->privsize);
}





------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.