Test: patch to add advanced d3d settings in winecfg
Test: patch to add advanced d3d settings in winecfg
Hello everybody...
My patch to add advanced d3d settings in winecfg is almost ready.
In fact, i only have to figure out how to detect video memory size to
display it when no key is set to force it or to reset. Stefan D told
me to use DirectDraw, but i wouldn't find.
So that is the last thing (except some better naming...) to do for this patch.
Everything works well and i would like some feedback.
Thanks, kind regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d3d_advanced.diff
Type: text/x-patch
Size: 15150 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-us ... chment.bin>
My patch to add advanced d3d settings in winecfg is almost ready.
In fact, i only have to figure out how to detect video memory size to
display it when no key is set to force it or to reset. Stefan D told
me to use DirectDraw, but i wouldn't find.
So that is the last thing (except some better naming...) to do for this patch.
Everything works well and i would like some feedback.
Thanks, kind regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d3d_advanced.diff
Type: text/x-patch
Size: 15150 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-us ... chment.bin>
Re: Test: patch to add adva,ced d3d settings in winecfg
Hint : won't do any good if you replace english strings by french ones into En.rcWarren Dumortier wrote:Hello everybody...
My patch to add advanced d3d settings in winecfg is almost ready.
In fact, i only have to figure out how to detect video memory size to
display it when no key is set to force it or to reset. Stefan D told
me to use DirectDraw, but i wouldn't find.
So that is the last thing (except some better naming...) to do for this patch.
Everything works well and i would like some feedback.
Thanks, kind regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d3d_advanced.diff
Type: text/x-patch
Size: 15150 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-us ... chment.bin>

Test: patch to add adva,ced d3d settings in winecfg
2009/4/9 Usurp <[email protected]>:
As you can see the groupbox is lowered, but that's because i did in
the french .rc file, so i will have to update the english one.
What do you mean? French translations are in Fr.rc and i already did that.Warren Dumortier wrote:Hint : won't do any good if you replace english strings by french ones into En.rcHello everybody...
My patch to add advanced d3d settings in winecfg is almost ready.
In fact, i only have to figure out how to detect video memory size to
display it when no key is set to force it or to reset. Stefan D told
me to use DirectDraw, but i wouldn't find.
So that is the last thing (except some better naming...) to do for this patch.
Everything works well and i would like some feedback.
Thanks, kind regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d3d_advanced.diff
Type: text/x-patch
Size: 15150 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-us ... chment.bin>
As you can see the groupbox is lowered, but that's because i did in
the french .rc file, so i will have to update the english one.
Re: Test: patch to add adva,ced d3d settings in winecfg
Reading through http://www.winehq.org/pipermail/wine-us ... chment.binWhat do you mean? French translations are in Fr.rc and i already did that.
As you can see the groupbox is lowered, but that's because i did in
the french .rc file, so i will have to update the english one.
shows only changes to En.rc and these include french.
diff -rupN orig/programs/winecfg/En.rc new/programs/winecfg/En.rc
--- orig/programs/winecfg/En.rc 2009-03-27 19:31:22.000000000 +0100
+++ new/programs/winecfg/En.rc 2009-04-09 11:06:24.000000000 +0200
@@ -78,16 +78,39 @@ BEGIN
EDITTEXT IDC_DESKTOP_WIDTH,64,68,40,12,ES_AUTOHSCROLL | ES_NUMBER | WS_DISABLED
EDITTEXT IDC_DESKTOP_HEIGHT,117,68,40,12,ES_AUTOHSCROLL | ES_NUMBER | WS_DISABLED
- GROUPBOX " Direct3D ",IDC_STATIC,8,95,244,49
- LTEXT "&Vertex Shader Support: ",IDC_STATIC,15,110,80,32
...
+ GROUPBOX " Direct3D ",IDC_STATIC,8,103,244,76
+ LTEXT "Support du Vertex Shader: ",IDC_STATIC,15,118,90,32
+ CONTROL "Permettre le Pixel Shader (si supporté par le matériel)",IDC_D3D_PSHADER_MODE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,134,230,10
Test: patch to add adva,ced d3d settings in winecfg
2009/4/9 Usurp <[email protected]>:
But what about the new settings dialog?
Ow i'm sorry, forgot to change those strings in english...Reading through http://www.winehq.org/pipermail/wine-us ... chment.binWhat do you mean? French translations are in Fr.rc and i already did that.
As you can see the groupbox is lowered, but that's because i did in
the french .rc file, so i will have to update the english one.
shows only changes to En.rc and these include french.
diff -rupN orig/programs/winecfg/En.rc new/programs/winecfg/En.rc
--- orig/programs/winecfg/En.rc 2009-03-27 19:31:22.000000000 +0100
+++ new/programs/winecfg/En.rc 2009-04-09 11:06:24.000000000 +0200
@@ -78,16 +78,39 @@ BEGIN
EDITTEXT IDC_DESKTOP_WIDTH,64,68,40,12,ES_AUTOHSCROLL | ES_NUMBER | WS_DISABLED
EDITTEXT IDC_DESKTOP_HEIGHT,117,68,40,12,ES_AUTOHSCROLL | ES_NUMBER | WS_DISABLED
- GROUPBOX " Direct3D ",IDC_STATIC,8,95,244,49
- LTEXT "&Vertex Shader Support: ",IDC_STATIC,15,110,80,32
...
+ GROUPBOX " Direct3D ",IDC_STATIC,8,103,244,76
+ LTEXT "Support du Vertex Shader: ",IDC_STATIC,15,118,90,32
+ CONTROL "Permettre le Pixel Shader (si supporté par le matériel)",IDC_D3D_PSHADER_MODE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,134,230,10
But what about the new settings dialog?
I did a git pull then
patch -p1 < ../WineTests/advccfg.diff
And I got:
patching file programs/winecfg/En.rc
patching file programs/winecfg/resource.h
patching file programs/winecfg/x11drvdlg.c
patch unexpectedly ends in middle of line
Hunk #6 succeeded at 635 with fuzz 1.
I'm downloading the patch from the forum and it looks indeed broken (I'm not familiar with patch format). At the end of the patch I have:
-
case WM_NOTIFY:
switch (((LPNMHDR)lParam)->code) {
case PSN_KILLACTIVE: {
patch -p1 < ../WineTests/advccfg.diff
And I got:
patching file programs/winecfg/En.rc
patching file programs/winecfg/resource.h
patching file programs/winecfg/x11drvdlg.c
patch unexpectedly ends in middle of line
Hunk #6 succeeded at 635 with fuzz 1.
I'm downloading the patch from the forum and it looks indeed broken (I'm not familiar with patch format). At the end of the patch I have:
-
case WM_NOTIFY:
switch (((LPNMHDR)lParam)->code) {
case PSN_KILLACTIVE: {
Test: patch to add adva,ced d3d settings in winecfg
2009/4/9 fcmartins <[email protected]>:
And just before sending it it patched successfully with latest git.
What patch from the forum? I've attached the patch to my mail...I did a git pull then
patch -p1 < ../WineTests/advccfg.diff
And I got:
patching file programs/winecfg/En.rc
patching file programs/winecfg/resource.h
patching file programs/winecfg/x11drvdlg.c
patch unexpectedly ends in middle of line
Hunk #6 succeeded at 635 with fuzz 1.
I'm downloading the patch from the forum and it looks indeed broken (I'm not familiar with patch format). At the end of the patch I have:
-
case WM_NOTIFY:
switch (((LPNMHDR)lParam)->code) {
case PSN_KILLACTIVE: {
And just before sending it it patched successfully with latest git.
Test: patch to add adva,ced d3d settings in winecfg
On Thu, Apr 9, 2009 at 12:14 PM, fcmartins <[email protected]> wrote:
http://www.winehq.org/pipermail/wine-de ... 74677.html
--
-Austin
Try getting it from the mailing list archive;I did a git pull then
patch -p1 < ../WineTests/advccfg.diff
And I got:
patching file programs/winecfg/En.rc
patching file programs/winecfg/resource.h
patching file programs/winecfg/x11drvdlg.c
patch unexpectedly ends in middle of line
Hunk #6 succeeded at 635 with fuzz 1.
I'm downloading the patch from the forum and it looks indeed broken (I'm not familiar with patch format). At the end of the patch I have:
-
    case WM_NOTIFY:
      switch (((LPNMHDR)lParam)->code) {
        case PSN_KILLACTIVE: {
http://www.winehq.org/pipermail/wine-de ... 74677.html
--
-Austin
Test: patch to add adva,ced d3d settings in winecfg
On Thu, Apr 9, 2009 at 4:28 AM, Warren Dumortier <[email protected]> wrote:
-limits -Wpointer-arith -g -O2 -o x11drvdlg.o x11drvdlg.c
x11drvdlg.c: In function ‘d3d_advanced_settings_save’:
x11drvdlg.c:451: warning: ISO C90 forbids mixed declarations and code
x11drvdlg.c: In function ‘d3d_advanced_settings_reset’:
x11drvdlg.c:463: warning: passing argument 1 of ‘SetDlgItemTextA’
makes pointer from integer without a cast
x11drvdlg.c:465: warning: passing argument 1 of ‘SendMessageA’ makes
pointer from integer without a cast
x11drvdlg.c:465: warning: ISO C90 forbids mixed declarations and code
x11drvdlg.c:466: warning: passing argument 1 of ‘SendDlgItemMessageA’
makes pointer from integer without a cast
x11drvdlg.c:468: warning: passing argument 1 of ‘SendMessageA’ makes
pointer from integer without a cast
x11drvdlg.c:469: warning: passing argument 1 of ‘SendDlgItemMessageA’
makes pointer from integer without a cast
x11drvdlg.c:471: warning: passing argument 1 of ‘SendMessageA’ makes
pointer from integer without a cast
x11drvdlg.c:472: warning: passing argument 1 of ‘SendDlgItemMessageA’
makes pointer from integer without a cast
Other than that, and the comments Juan and others pointed out, looks good.
--
-Austin
Gives some compiler warnings here:Hello everybody...
My patch to add advanced d3d settings in winecfg is almost ready.
In fact, i only have to figure out how to detect video memory size to
display it when no key is set to force it or to reset. Stefan D told
me to use DirectDraw, but i wouldn't find.
So that is the last thing (except some better naming...) to do for this patch.
Everything works well and i would like some feedback.
Thanks, kind regards.
-limits -Wpointer-arith -g -O2 -o x11drvdlg.o x11drvdlg.c
x11drvdlg.c: In function ‘d3d_advanced_settings_save’:
x11drvdlg.c:451: warning: ISO C90 forbids mixed declarations and code
x11drvdlg.c: In function ‘d3d_advanced_settings_reset’:
x11drvdlg.c:463: warning: passing argument 1 of ‘SetDlgItemTextA’
makes pointer from integer without a cast
x11drvdlg.c:465: warning: passing argument 1 of ‘SendMessageA’ makes
pointer from integer without a cast
x11drvdlg.c:465: warning: ISO C90 forbids mixed declarations and code
x11drvdlg.c:466: warning: passing argument 1 of ‘SendDlgItemMessageA’
makes pointer from integer without a cast
x11drvdlg.c:468: warning: passing argument 1 of ‘SendMessageA’ makes
pointer from integer without a cast
x11drvdlg.c:469: warning: passing argument 1 of ‘SendDlgItemMessageA’
makes pointer from integer without a cast
x11drvdlg.c:471: warning: passing argument 1 of ‘SendMessageA’ makes
pointer from integer without a cast
x11drvdlg.c:472: warning: passing argument 1 of ‘SendDlgItemMessageA’
makes pointer from integer without a cast
Other than that, and the comments Juan and others pointed out, looks good.
--
-Austin
Test: patch to add adva,ced d3d settings in winecfg
On Thu, Apr 9, 2009 at 5:32 PM, Austin English <[email protected]> wrote:
/usr/lib/gcc-snapshot/bin/gcc -c -I. -I. -I../../include
-I../../include -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing
-Wdeclaration-after-statement -Wwrite-strings -Wtype-limits
-Wpointer-arith -g -O2 -o x11drvdlg.o x11drvdlg.c
x11drvdlg.c: In function 'd3d_advanced_settings_save':
x11drvdlg.c:451: warning: ISO C90 forbids mixed declarations and code
x11drvdlg.c: In function 'd3d_advanced_settings_reset':
x11drvdlg.c:463: warning: passing argument 1 of 'SetDlgItemTextA'
makes pointer from integer without a cast
../../include/winuser.h:4943: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:465: warning: passing argument 1 of 'SendMessageA' makes
pointer from integer without a cast
../../include/winuser.h:4908: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:465: warning: ISO C90 forbids mixed declarations and code
x11drvdlg.c:466: warning: passing argument 1 of 'SendDlgItemMessageA'
makes pointer from integer without a cast
../../include/winuser.h:4904: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:468: warning: passing argument 1 of 'SendMessageA' makes
pointer from integer without a cast
../../include/winuser.h:4908: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:469: warning: passing argument 1 of 'SendDlgItemMessageA'
makes pointer from integer without a cast
../../include/winuser.h:4904: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:471: warning: passing argument 1 of 'SendMessageA' makes
pointer from integer without a cast
../../include/winuser.h:4908: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:472: warning: passing argument 1 of 'SendDlgItemMessageA'
makes pointer from integer without a cast
../../include/winuser.h:4904: note: expected 'HWND' but argument is of
type 'int'
LD_LIBRARY_PATH="../../libs/wine:$LD_LIBRARY_PATH" ../../tools/wrc/wrc
--nostdinc -I. -I. -I../../include -I../../include -fowinecfg.res
winecfg.rc
../../tools/winegcc/winegcc -m64 -B../../tools/winebuild -mwindows
appdefaults.o audio.o drive.o drivedetect.o driveui.o libraries.o
main.o theme.o winecfg.o x11drvdlg.o winecfg.res -o winecfg.exe.so
-luuid -lcomdlg32 -lcomctl32 -lshell32 -lole32 -lwinmm -lshlwapi
-luxtheme -luser32 -lgdi32 -ladvapi32 -lkernel32
../../libs/port/libwine_port.a
--
-Austin
Compiling under 64-bit is bit more verbose:On Thu, Apr 9, 2009 at 4:28 AM, Warren Dumortier <[email protected]> wrote:Gives some compiler warnings here:Hello everybody...
My patch to add advanced d3d settings in winecfg is almost ready.
In fact, i only have to figure out how to detect video memory size to
display it when no key is set to force it or to reset. Stefan D told
me to use DirectDraw, but i wouldn't find.
So that is the last thing (except some better naming...) to do for this patch.
Everything works well and i would like some feedback.
Thanks, kind regards.
-limits -Wpointer-arith  -g -O2  -o x11drvdlg.o x11drvdlg.c
x11drvdlg.c: In function ‘d3d_advanced_settings_save’:
x11drvdlg.c:451: warning: ISO C90 forbids mixed declarations and code
x11drvdlg.c: In function ‘d3d_advanced_settings_reset’:
x11drvdlg.c:463: warning: passing argument 1 of ‘SetDlgItemTextA’
makes pointer from integer without a cast
x11drvdlg.c:465: warning: passing argument 1 of ‘SendMessageA’ makes
pointer from integer without a cast
x11drvdlg.c:465: warning: ISO C90 forbids mixed declarations and code
x11drvdlg.c:466: warning: passing argument 1 of ‘SendDlgItemMessageA’
makes pointer from integer without a cast
x11drvdlg.c:468: warning: passing argument 1 of ‘SendMessageA’ makes
pointer from integer without a cast
x11drvdlg.c:469: warning: passing argument 1 of ‘SendDlgItemMessageA’
makes pointer from integer without a cast
x11drvdlg.c:471: warning: passing argument 1 of ‘SendMessageA’ makes
pointer from integer without a cast
x11drvdlg.c:472: warning: passing argument 1 of ‘SendDlgItemMessageA’
makes pointer from integer without a cast
Other than that, and the comments Juan and others pointed out, looks good.
--
-Austin
/usr/lib/gcc-snapshot/bin/gcc -c -I. -I. -I../../include
-I../../include -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing
-Wdeclaration-after-statement -Wwrite-strings -Wtype-limits
-Wpointer-arith -g -O2 -o x11drvdlg.o x11drvdlg.c
x11drvdlg.c: In function 'd3d_advanced_settings_save':
x11drvdlg.c:451: warning: ISO C90 forbids mixed declarations and code
x11drvdlg.c: In function 'd3d_advanced_settings_reset':
x11drvdlg.c:463: warning: passing argument 1 of 'SetDlgItemTextA'
makes pointer from integer without a cast
../../include/winuser.h:4943: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:465: warning: passing argument 1 of 'SendMessageA' makes
pointer from integer without a cast
../../include/winuser.h:4908: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:465: warning: ISO C90 forbids mixed declarations and code
x11drvdlg.c:466: warning: passing argument 1 of 'SendDlgItemMessageA'
makes pointer from integer without a cast
../../include/winuser.h:4904: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:468: warning: passing argument 1 of 'SendMessageA' makes
pointer from integer without a cast
../../include/winuser.h:4908: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:469: warning: passing argument 1 of 'SendDlgItemMessageA'
makes pointer from integer without a cast
../../include/winuser.h:4904: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:471: warning: passing argument 1 of 'SendMessageA' makes
pointer from integer without a cast
../../include/winuser.h:4908: note: expected 'HWND' but argument is of
type 'int'
x11drvdlg.c:472: warning: passing argument 1 of 'SendDlgItemMessageA'
makes pointer from integer without a cast
../../include/winuser.h:4904: note: expected 'HWND' but argument is of
type 'int'
LD_LIBRARY_PATH="../../libs/wine:$LD_LIBRARY_PATH" ../../tools/wrc/wrc
--nostdinc -I. -I. -I../../include -I../../include -fowinecfg.res
winecfg.rc
../../tools/winegcc/winegcc -m64 -B../../tools/winebuild -mwindows
appdefaults.o audio.o drive.o drivedetect.o driveui.o libraries.o
main.o theme.o winecfg.o x11drvdlg.o winecfg.res -o winecfg.exe.so
-luuid -lcomdlg32 -lcomctl32 -lshell32 -lole32 -lwinmm -lshlwapi
-luxtheme -luser32 -lgdi32 -ladvapi32 -lkernel32
../../libs/port/libwine_port.a
--
-Austin
Re: Test: patch to add adva,ced d3d settings in winecfg
Nope, I get the same file with 353 lines. Could you email it to me ([email protected]), please?austin987 wrote: Try getting it from the mailing list archive;
http://www.winehq.org/pipermail/wine-de ... 74677.html
Thanks,
Fernando
I've applied the patch Austin sent me (thanks) agains 1.1.19. There is only a loose French label in the Graphics tab ("Permettre le Pixel Shader...", which I guess is the one reported before.
I think there are a few bugs (not necessarily caused by the patch):
- the Applications Listbox is not correctly displayed: it misses the recessed effect
- the Windows version is not set by default AND winecfg does not keep it
Also, when adding an application, there is a stray bar displayed on the middle-left side of the listbox. but this one for sure existed already in 1.1.18.
I think there is also a tiny-tiny usability issue: for a normal user, there is no difference between the settings in the Direct3D section and the Advanced Button settings, i.e., all of them are likely to be perceived as advanced, anyway. It could be relabeled "Other settings", but it's not really relevant.
Since there is no help function, it could be useful to point the user to http://wiki.winehq.org/UsefulRegistryKeys for further explanations.
[/img]
I think there are a few bugs (not necessarily caused by the patch):
- the Applications Listbox is not correctly displayed: it misses the recessed effect
- the Windows version is not set by default AND winecfg does not keep it
Also, when adding an application, there is a stray bar displayed on the middle-left side of the listbox. but this one for sure existed already in 1.1.18.
I think there is also a tiny-tiny usability issue: for a normal user, there is no difference between the settings in the Direct3D section and the Advanced Button settings, i.e., all of them are likely to be perceived as advanced, anyway. It could be relabeled "Other settings", but it's not really relevant.
Since there is no help function, it could be useful to point the user to http://wiki.winehq.org/UsefulRegistryKeys for further explanations.
[/img]
Looks like a regression in 1.1.19 since it happens with or without any patches.fcmartins wrote: I think there are a few bugs (not necessarily caused by the patch):
- the Windows version is not set by default AND winecfg does not keep it
Code: Select all
59148d0bb549ff8690f15f14571a715e3fdd43a5 is first bad commit
commit 59148d0bb549ff8690f15f14571a715e3fdd43a5
Author: Nikolay Sivov <[email protected]>
Date: Tue Apr 7 12:15:21 2009 -0400
comctl32/listview: Implement delayed header creation for ListView control.
:040000 040000 917d3c197548165028394f45e22b6d32632f36cd 3df9c0746fceb9202daab94828b78177e4f4c176 M dlls
Test: patch to add advanced d3d settings in winecfg
On Sun, Apr 12, 2009 at 12:00 PM, loltsy <[email protected]> wrote:
--
-Austin
File a bug at http://bugs.winehq.orgfcmartins wrote:Looks like a regression in 1.1.19 since it happens with or without any patches.I think there are a few bugs (not necessarily caused by the patch):
- the Windows version is not set by default AND winecfg does not keep it
Code:
59148d0bb549ff8690f15f14571a715e3fdd43a5 is first bad commit
commit 59148d0bb549ff8690f15f14571a715e3fdd43a5
Author: Nikolay Sivov <[email protected]>
Date: Â Tue Apr 7 12:15:21 2009 -0400
  comctl32/listview: Implement delayed header creation for ListView control.
:040000 040000 917d3c197548165028394f45e22b6d32632f36cd 3df9c0746fceb9202daab94828b78177e4f4c176 M Â Â Â dlls
--
-Austin