Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2257)

Unified Diff: core/win/d3d9/renderer_d3d9.cc

Issue 606005: Fix the software renderer "soft" fullscreen mode using the wrong monitor bug. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | plugin/win/main_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/win/d3d9/renderer_d3d9.cc
===================================================================
--- core/win/d3d9/renderer_d3d9.cc (revision 38988)
+++ core/win/d3d9/renderer_d3d9.cc (working copy)
@@ -1391,6 +1391,14 @@
int refresh_rate = 0;
bool windowed = true;
+ // With software renderer, always use DISPLAY_MODE_DEFAULT.
+ // This is due to a bug in software renderer that only the primary
+ // monitor/adapter is recognized.
+ ClientInfoManager* client_info_manager =
+ service_locator()->GetService<ClientInfoManager>();
+ if (client_info_manager->client_info().software_renderer())
+ mode_id = DISPLAY_MODE_DEFAULT;
+
// Look up the refresh rate, width and height.
DisplayMode mode;
if (!GetDisplayMode(mode_id, &mode)) {
« no previous file with comments | « no previous file | plugin/win/main_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698