summaryrefslogtreecommitdiffstats
path: root/ui/surface/d3d9_utils_win.cc
diff options
context:
space:
mode:
authorzturner@chromium.org <zturner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-08 20:47:52 +0000
committerzturner@chromium.org <zturner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-08 20:47:52 +0000
commitd6272fe565bbf50a8da61cef52152e00741b3696 (patch)
treeba145ea5d9e791b3dd65c4b97057850ee90bec64 /ui/surface/d3d9_utils_win.cc
parent0f4b9ac1eaa8fca3c58c2a593ae093ed66bb89a5 (diff)
downloadchromium_src-d6272fe565bbf50a8da61cef52152e00741b3696.zip
chromium_src-d6272fe565bbf50a8da61cef52152e00741b3696.tar.gz
chromium_src-d6272fe565bbf50a8da61cef52152e00741b3696.tar.bz2
Change use of GetShellWindow() to GetDesktopWindow(), since GetShellWindow() returns NULL with an empty shell. This can cause painting problems in certain cases when no shell is running.
BUG=169652 Review URL: https://chromiumcodereview.appspot.com/14786019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/surface/d3d9_utils_win.cc')
-rw-r--r--ui/surface/d3d9_utils_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/surface/d3d9_utils_win.cc b/ui/surface/d3d9_utils_win.cc
index a95ffb6..67df0fe 100644
--- a/ui/surface/d3d9_utils_win.cc
+++ b/ui/surface/d3d9_utils_win.cc
@@ -43,7 +43,7 @@ bool CreateDevice(const base::ScopedNativeLibrary& d3d_module,
// Any old window will do to create the device. In practice the window to
// present to is an argument to IDirect3DDevice9::Present.
- HWND window = GetShellWindow();
+ HWND window = GetDesktopWindow();
D3DPRESENT_PARAMETERS parameters = { 0 };
parameters.BackBufferWidth = 1;