Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
35a92c86
Commit
35a92c86
authored
Dec 26, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Dec 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Use hourglass cursor when opening audio drivers.
Misbehaving drivers can take a while to open so change to the hour glass cursor when opening them.
parent
9da8128e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
audio.c
programs/winecfg/audio.c
+18
-0
No files found.
programs/winecfg/audio.c
View file @
35a92c86
...
...
@@ -181,6 +181,7 @@ static void initAudioDeviceTree(HWND hDlg)
HWND
tree
=
NULL
;
HIMAGELIST
hImageList
;
HBITMAP
hBitMap
;
HCURSOR
old_cursor
;
tree
=
GetDlgItem
(
hDlg
,
IDC_AUDIO_TREE
);
...
...
@@ -205,6 +206,11 @@ static void initAudioDeviceTree(HWND hDlg)
insert
.
u
.
item
.
cChildren
=
1
;
root
=
(
HTREEITEM
)
SendDlgItemMessage
(
hDlg
,
IDC_AUDIO_TREE
,
TVM_INSERTITEM
,
0
,
(
LPARAM
)
&
insert
);
/* change to the wait cursor because this can take a while if there is a
* misbehaving driver that takes a long time to open
*/
old_cursor
=
SetCursor
(
LoadCursor
(
0
,
IDC_WAIT
));
/* iterate over list of loaded drivers */
for
(
pAudioDrv
=
loadedAudioDrv
,
i
=
0
;
*
pAudioDrv
->
szName
;
i
++
,
pAudioDrv
++
)
{
HDRVR
hdrv
;
...
...
@@ -433,6 +439,9 @@ static void initAudioDeviceTree(HWND hDlg)
}
}
/* restore the original cursor */
SetCursor
(
old_cursor
);
SendDlgItemMessage
(
hDlg
,
IDC_AUDIO_TREE
,
TVM_SELECTITEM
,
0
,
0
);
SendDlgItemMessage
(
hDlg
,
IDC_AUDIO_TREE
,
TVM_EXPAND
,
TVE_EXPAND
,
(
LPARAM
)
root
);
for
(
j
=
0
;
j
<
i
;
j
++
)
...
...
@@ -444,6 +453,7 @@ static void findAudioDrivers(void)
{
int
numFound
=
0
;
const
AUDIO_DRIVER
*
pAudioDrv
=
NULL
;
HCURSOR
old_cursor
;
/* delete an existing list */
if
(
loadedAudioDrv
)
...
...
@@ -452,6 +462,11 @@ static void findAudioDrivers(void)
loadedAudioDrv
=
0
;
}
/* change to the wait cursor because this can take a while if there is a
* misbehaving driver that takes a long time to open
*/
old_cursor
=
SetCursor
(
LoadCursor
(
0
,
IDC_WAIT
));
for
(
pAudioDrv
=
getAudioDrivers
();
*
pAudioDrv
->
szName
;
pAudioDrv
++
)
{
if
(
strlen
(
pAudioDrv
->
szDriver
))
...
...
@@ -476,6 +491,9 @@ static void findAudioDrivers(void)
}
}
/* restore the original cursor */
SetCursor
(
old_cursor
);
/* terminate list with empty driver */
loadedAudioDrv
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
loadedAudioDrv
,
(
numFound
+
1
)
*
sizeof
(
AUDIO_DRIVER
));
CopyMemory
(
&
loadedAudioDrv
[
numFound
],
pAudioDrv
,
sizeof
(
AUDIO_DRIVER
));
...
...
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