- Timestamp:
- 08/23/11 00:34:59 (13 years ago)
- Location:
- ps/trunk/source/ps
- Files:
-
- 3 edited
-
GameSetup/HWDetect.cpp (modified) (2 diffs)
-
VideoMode.cpp (modified) (1 diff)
-
VideoMode.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/ps/GameSetup/HWDetect.cpp
r9814 r10065 201 201 scriptInterface.SetProperty(settings.get(), "video_bpp", g_VideoMode.GetBPP()); 202 202 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 203 208 struct utsname un; 204 209 uname(&un); … … 259 264 260 265 // 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)); 262 267 263 268 // Run the detection script: -
ps/trunk/source/ps/VideoMode.cpp
r9546 r10065 381 381 return m_CurrentBPP; 382 382 } 383 384 int CVideoMode::GetDesktopXRes() 385 { 386 ENSURE(m_IsInitialised); 387 return m_PreferredW; 388 } 389 390 int CVideoMode::GetDesktopYRes() 391 { 392 ENSURE(m_IsInitialised); 393 return m_PreferredH; 394 } 395 396 int CVideoMode::GetDesktopBPP() 397 { 398 ENSURE(m_IsInitialised); 399 return m_PreferredBPP; 400 } 401 402 int CVideoMode::GetDesktopFreq() 403 { 404 ENSURE(m_IsInitialised); 405 return m_PreferredFreq; 406 } -
ps/trunk/source/ps/VideoMode.h
r8491 r10065 67 67 int GetBPP(); 68 68 69 int GetDesktopXRes(); 70 int GetDesktopYRes(); 71 int GetDesktopBPP(); 72 int GetDesktopFreq(); 73 69 74 private: 70 75 void ReadConfig();
Note:
See TracChangeset
for help on using the changeset viewer.
