This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 10065 for ps


Ignore:
Timestamp:
08/23/11 00:34:59 (13 years ago)
Author:
philip
Message:

Report desktop display size (not just window size)

Location:
ps/trunk/source/ps
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/ps/GameSetup/HWDetect.cpp

    r9814 r10065  
    201201    scriptInterface.SetProperty(settings.get(), "video_bpp", g_VideoMode.GetBPP());
    202202
     203    scriptInterface.SetProperty(settings.get(), "video_desktop_xres", g_VideoMode.GetDesktopXRes());
     204    scriptInterface.SetProperty(settings.get(), "video_desktop_yres", g_VideoMode.GetDesktopYRes());
     205    scriptInterface.SetProperty(settings.get(), "video_desktop_bpp", g_VideoMode.GetDesktopBPP());
     206    scriptInterface.SetProperty(settings.get(), "video_desktop_freq", g_VideoMode.GetDesktopFreq());
     207
    203208    struct utsname un;
    204209    uname(&un);
     
    259264
    260265    // Send the same data to the reporting system
    261     g_UserReporter.SubmitReport("hwdetect", 7, scriptInterface.StringifyJSON(settings.get(), false));
     266    g_UserReporter.SubmitReport("hwdetect", 8, scriptInterface.StringifyJSON(settings.get(), false));
    262267
    263268    // Run the detection script:
  • ps/trunk/source/ps/VideoMode.cpp

    r9546 r10065  
    381381    return m_CurrentBPP;
    382382}
     383
     384int CVideoMode::GetDesktopXRes()
     385{
     386    ENSURE(m_IsInitialised);
     387    return m_PreferredW;
     388}
     389
     390int CVideoMode::GetDesktopYRes()
     391{
     392    ENSURE(m_IsInitialised);
     393    return m_PreferredH;
     394}
     395
     396int CVideoMode::GetDesktopBPP()
     397{
     398    ENSURE(m_IsInitialised);
     399    return m_PreferredBPP;
     400}
     401
     402int CVideoMode::GetDesktopFreq()
     403{
     404    ENSURE(m_IsInitialised);
     405    return m_PreferredFreq;
     406}
  • ps/trunk/source/ps/VideoMode.h

    r8491 r10065  
    6767    int GetBPP();
    6868
     69    int GetDesktopXRes();
     70    int GetDesktopYRes();
     71    int GetDesktopBPP();
     72    int GetDesktopFreq();
     73
    6974private:
    7075    void ReadConfig();
Note: See TracChangeset for help on using the changeset viewer.