Fix wrong class name used when unregistering class for dummy window in SkOsWindow_win.cpp
Skia issue 212. git-svn-id: http://skia.googlecode.com/svn/trunk@1124 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
a8282ef8f9
commit
f5848e49ae
@ -302,7 +302,7 @@ static HWND create_dummy()
|
|||||||
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||||
wc.hbrBackground = NULL;
|
wc.hbrBackground = NULL;
|
||||||
wc.lpszMenuName = NULL;
|
wc.lpszMenuName = NULL;
|
||||||
wc.lpszClassName = STR_LIT("DummyWindow");
|
wc.lpszClassName = STR_LIT("DummyClass");
|
||||||
|
|
||||||
if(!RegisterClass(&wc))
|
if(!RegisterClass(&wc))
|
||||||
{
|
{
|
||||||
@ -315,8 +315,8 @@ static HWND create_dummy()
|
|||||||
|
|
||||||
AdjustWindowRectEx(&windowRect, style, false, exStyle);
|
AdjustWindowRectEx(&windowRect, style, false, exStyle);
|
||||||
if(!(dummy = CreateWindowEx(exStyle,
|
if(!(dummy = CreateWindowEx(exStyle,
|
||||||
|
STR_LIT("DummyClass"),
|
||||||
STR_LIT("DummyWindow"),
|
STR_LIT("DummyWindow"),
|
||||||
STR_LIT("Dummy Window"),
|
|
||||||
WS_CLIPSIBLINGS | WS_CLIPCHILDREN | style,
|
WS_CLIPSIBLINGS | WS_CLIPCHILDREN | style,
|
||||||
0, 0,
|
0, 0,
|
||||||
windowRect.right-windowRect.left,
|
windowRect.right-windowRect.left,
|
||||||
@ -325,7 +325,7 @@ static HWND create_dummy()
|
|||||||
module,
|
module,
|
||||||
NULL)))
|
NULL)))
|
||||||
{
|
{
|
||||||
UnregisterClass(STR_LIT("Dummy Window"), module);
|
UnregisterClass(STR_LIT("DummyClass"), module);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
ShowWindow(dummy, SW_HIDE);
|
ShowWindow(dummy, SW_HIDE);
|
||||||
@ -336,7 +336,7 @@ static HWND create_dummy()
|
|||||||
void kill_dummy(HWND dummy) {
|
void kill_dummy(HWND dummy) {
|
||||||
DestroyWindow(dummy);
|
DestroyWindow(dummy);
|
||||||
HMODULE module = GetModuleHandle(NULL);
|
HMODULE module = GetModuleHandle(NULL);
|
||||||
UnregisterClass(STR_LIT("Dummy Window"), module);
|
UnregisterClass(STR_LIT("DummyClass"), module);
|
||||||
}
|
}
|
||||||
|
|
||||||
// WGL_ARB_pixel_format
|
// WGL_ARB_pixel_format
|
||||||
|
Loading…
Reference in New Issue
Block a user