Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
61404d3d
Commit
61404d3d
authored
Aug 18, 2006
by
Frank Richter
Committed by
Alexandre Julliard
Aug 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: x11drv: Load vertex shader mode strings from resources.
parent
a3c52ef8
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
111 additions
and
11 deletions
+111
-11
Bg.rc
programs/winecfg/Bg.rc
+7
-0
De.rc
programs/winecfg/De.rc
+7
-0
En.rc
programs/winecfg/En.rc
+7
-0
Es.rc
programs/winecfg/Es.rc
+7
-0
Fi.rc
programs/winecfg/Fi.rc
+7
-0
Fr.rc
programs/winecfg/Fr.rc
+7
-0
Hu.rc
programs/winecfg/Hu.rc
+7
-0
Ja.rc
programs/winecfg/Ja.rc
+7
-0
Ko.rc
programs/winecfg/Ko.rc
+7
-0
Nl.rc
programs/winecfg/Nl.rc
+7
-0
No.rc
programs/winecfg/No.rc
+7
-0
Ru.rc
programs/winecfg/Ru.rc
+7
-0
Tr.rc
programs/winecfg/Tr.rc
+7
-0
resource.h
programs/winecfg/resource.h
+3
-0
x11drvdlg.c
programs/winecfg/x11drvdlg.c
+17
-11
No files found.
programs/winecfg/Bg.rc
View file @
61404d3d
...
...
@@ -232,3 +232,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/De.rc
View file @
61404d3d
...
...
@@ -230,3 +230,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "Globale Einstellung benutzen"
IDS_SELECT_EXECUTABLE "Ausfhrbares Programm auswhlen"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "Aus"
IDS_SHADER_MODE_EMULATION "Emuliert"
END
programs/winecfg/En.rc
View file @
61404d3d
...
...
@@ -232,6 +232,13 @@ BEGIN
IDS_SELECT_EXECUTABLE "Select an executable file"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
/****************************************************************/
/* English neutral resources
/****************************************************************/
...
...
programs/winecfg/Es.rc
View file @
61404d3d
...
...
@@ -226,3 +226,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/Fi.rc
View file @
61404d3d
...
...
@@ -229,3 +229,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/Fr.rc
View file @
61404d3d
...
...
@@ -230,3 +230,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/Hu.rc
View file @
61404d3d
...
...
@@ -226,3 +226,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/Ja.rc
View file @
61404d3d
...
...
@@ -224,3 +224,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/Ko.rc
View file @
61404d3d
...
...
@@ -233,3 +233,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "전체 설정 사용"
IDS_SELECT_EXECUTABLE "실행 파일 선택"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/Nl.rc
View file @
61404d3d
...
...
@@ -231,3 +231,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/No.rc
View file @
61404d3d
...
...
@@ -229,3 +229,10 @@ END
IDS_USE_GLOBAL_SETTINGS "Bruk globale innstillinger"
IDS_SELECT_EXECUTABLE "Velg en programfil"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/Ru.rc
View file @
61404d3d
...
...
@@ -226,3 +226,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/Tr.rc
View file @
61404d3d
...
...
@@ -229,3 +229,10 @@ BEGIN
IDS_USE_GLOBAL_SETTINGS "Genel ayarlar kullan"
IDS_SELECT_EXECUTABLE "altrlabilir bir dosya sein"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SHADER_MODE_HARDWARE "Hardware"
IDS_SHADER_MODE_NONE "None"
IDS_SHADER_MODE_EMULATION "Emulated"
END
programs/winecfg/resource.h
View file @
61404d3d
...
...
@@ -139,6 +139,9 @@
#define IDC_DOUBLE_BUFFER 1104
#define IDC_D3D_VSHADER_MODE 1105
#define IDC_D3D_PSHADER_MODE 1106
#define IDS_SHADER_MODE_HARDWARE 8100
#define IDS_SHADER_MODE_NONE 8101
#define IDS_SHADER_MODE_EMULATION 8102
/* applications tab */
#define IDC_APP_LISTVIEW 1200
...
...
programs/winecfg/x11drvdlg.c
View file @
61404d3d
...
...
@@ -38,11 +38,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(winecfg);
#define RES_MAXLEN 5
/* the maximum number of characters in a screen dimension. 5 digits should be plenty, what kind of crazy person runs their screen >10,000 pixels across? */
static
const
char
*
D3D_VS_Modes
[]
=
{
"hardware"
,
"none"
,
"emulation"
,
NULL
static
struct
SHADERMODE
{
UINT
displayStrID
;
const
char
*
settingStr
;
}
const
D3D_VS_Modes
[]
=
{
{
IDS_SHADER_MODE_HARDWARE
,
"hardware"
},
{
IDS_SHADER_MODE_EMULATION
,
"emulation"
},
{
IDS_SHADER_MODE_NONE
,
"none"
},
{
0
,
0
}
};
...
...
@@ -145,17 +149,18 @@ static void init_dialog(HWND dialog)
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
SendDlgItemMessage
(
dialog
,
IDC_D3D_VSHADER_MODE
,
CB_RESETCONTENT
,
0
,
0
);
for
(
it
=
0
;
NULL
!=
D3D_VS_Modes
[
it
];
++
it
)
{
SendDlgItemMessage
(
dialog
,
IDC_D3D_VSHADER_MODE
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
D3D_VS_Modes
[
it
]);
for
(
it
=
0
;
0
!=
D3D_VS_Modes
[
it
].
displayStrID
;
++
it
)
{
SendDlgItemMessageW
(
dialog
,
IDC_D3D_VSHADER_MODE
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
load_string
(
D3D_VS_Modes
[
it
].
displayStrID
));
}
buf
=
get_reg_key
(
config_key
,
keypath
(
"Direct3D"
),
"VertexShaderMode"
,
"hardware"
);
for
(
it
=
0
;
NULL
!=
D3D_VS_Modes
[
it
];
++
it
)
{
if
(
strcmp
(
buf
,
D3D_VS_Modes
[
it
])
==
0
)
{
for
(
it
=
0
;
NULL
!=
D3D_VS_Modes
[
it
]
.
settingStr
;
++
it
)
{
if
(
strcmp
(
buf
,
D3D_VS_Modes
[
it
]
.
settingStr
)
==
0
)
{
SendDlgItemMessage
(
dialog
,
IDC_D3D_VSHADER_MODE
,
CB_SETCURSEL
,
it
,
0
);
break
;
}
}
if
(
NULL
==
D3D_VS_Modes
[
it
])
{
if
(
NULL
==
D3D_VS_Modes
[
it
]
.
settingStr
)
{
WINE_ERR
(
"Invalid Direct3D VertexShader Mode read from registry (%s)
\n
"
,
buf
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
...
...
@@ -238,7 +243,8 @@ static void on_double_buffer_clicked(HWND dialog) {
static
void
on_d3d_vshader_mode_changed
(
HWND
dialog
)
{
int
selected_mode
=
SendDlgItemMessage
(
dialog
,
IDC_D3D_VSHADER_MODE
,
CB_GETCURSEL
,
0
,
0
);
set_reg_key
(
config_key
,
keypath
(
"Direct3D"
),
"VertexShaderMode"
,
D3D_VS_Modes
[
selected_mode
]);
set_reg_key
(
config_key
,
keypath
(
"Direct3D"
),
"VertexShaderMode"
,
D3D_VS_Modes
[
selected_mode
].
settingStr
);
}
static
void
on_d3d_pshader_mode_clicked
(
HWND
dialog
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment