DXGL r108 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r107
|
r108
|
r109
>
Date:
22:41, 29 February 2012
Author:
admin
Status:
new
Tags:
Comment:
Prevent overlay window from stealing focus. Fixes input for Allegro games.
Modified paths:
/ddraw/glRenderer.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glRenderer.cpp
—
—
@@ -483,6 +483,7 @@
484
484
hRenderWnd = CreateWindowA("DXGLRenderWindow","Renderer",WS_CHILD|WS_VISIBLE,0,0,rectRender.right - rectRender.left,
485
485
rectRender.bottom - rectRender.top,hWnd,NULL,wndclass.hInstance,this);
486
486
hasHWnd = true;
487
+ SetWindowPos(hRenderWnd,HWND_TOP,0,0,rectRender.right,rectRender.bottom,SWP_SHOWWINDOW);
487
488
}
488
489
else
489
490
{
—
—
@@ -491,8 +492,8 @@
492
493
hRenderWnd = CreateWindowExA(WS_EX_TOOLWINDOW|WS_EX_LAYERED|WS_EX_TRANSPARENT|WS_EX_TOPMOST,
493
494
"DXGLRenderWindow","Renderer",WS_POPUP,0,0,width,height,0,0,NULL,this);
494
495
hasHWnd = false;
496
+ SetWindowPos(hRenderWnd,HWND_TOP,0,0,rectRender.right,rectRender.bottom,SWP_SHOWWINDOW|SWP_NOACTIVATE);
495
497
}
496
- SetWindowPos(hRenderWnd,HWND_TOP,0,0,rectRender.right,rectRender.bottom,SWP_SHOWWINDOW);
497
498
if(hRC)
498
499
{
499
500
wglMakeCurrent(NULL,NULL);
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version