-
-
- XF86VidModeModeLine VM;
- int nDotClock;
-
- XF86VidModeGetModeLine((Display*)wxGetDisplay(), DefaultScreen((Display*)wxGetDisplay()),
- &nDotClock, &VM);
-
- //A XF86VidModeModeLine is a XF86ModeModeInfo without the dotclock
- //field. It would be nice to mayby use a memcpy() here instead of
- //all this?
- m_priv->m_DefaultVidMode.dotclock = nDotClock;
- m_priv->m_DefaultVidMode.hdisplay = VM.hdisplay;
- m_priv->m_DefaultVidMode.hsyncstart = VM.hsyncstart;
- m_priv->m_DefaultVidMode.hsyncend = VM.hsyncend;
- m_priv->m_DefaultVidMode.htotal = VM.htotal;
- m_priv->m_DefaultVidMode.hskew = VM.hskew;
- m_priv->m_DefaultVidMode.vdisplay = VM.vdisplay;
- m_priv->m_DefaultVidMode.vsyncstart = VM.vsyncstart;
- m_priv->m_DefaultVidMode.vsyncend = VM.vsyncend;
- m_priv->m_DefaultVidMode.vtotal = VM.vtotal;
- m_priv->m_DefaultVidMode.flags = VM.flags;
- m_priv->m_DefaultVidMode.privsize = VM.privsize;
- m_priv->m_DefaultVidMode.c_private = VM.c_private;