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
6e56e37b
Commit
6e56e37b
authored
Aug 07, 2007
by
Nigel Liang
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Fix apply button always available in graphics tab bug.
parent
610a3b1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
x11drvdlg.c
programs/winecfg/x11drvdlg.c
+9
-2
No files found.
programs/winecfg/x11drvdlg.c
View file @
6e56e37b
...
...
@@ -257,12 +257,16 @@ static void init_dpi_editbox(HWND hDlg)
DWORD
dwLogpixels
;
char
szLogpixels
[
MAXBUFLEN
];
updating_ui
=
TRUE
;
dwLogpixels
=
read_logpixels_reg
();
WINE_TRACE
(
"%d
\n
"
,
(
int
)
dwLogpixels
);
szLogpixels
[
0
]
=
0
;
sprintf
(
szLogpixels
,
"%d"
,
dwLogpixels
);
SendMessage
(
hDpiEditBox
,
WM_SETTEXT
,
0
,
(
LPARAM
)
szLogpixels
);
updating_ui
=
FALSE
;
}
static
void
init_trackbar
(
HWND
hDlg
)
...
...
@@ -270,10 +274,14 @@ static void init_trackbar(HWND hDlg)
HWND
hTrackBar
=
GetDlgItem
(
hDlg
,
IDC_RES_TRACKBAR
);
DWORD
dwLogpixels
;
updating_ui
=
TRUE
;
dwLogpixels
=
read_logpixels_reg
();
SendMessageW
(
hTrackBar
,
TBM_SETRANGE
,
TRUE
,
MAKELONG
(
MINDPI
,
MAXDPI
));
SendMessageW
(
hTrackBar
,
TBM_SETPOS
,
TRUE
,
dwLogpixels
);
updating_ui
=
FALSE
;
}
INT_PTR
CALLBACK
...
...
@@ -330,8 +338,6 @@ GraphDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
break
;
}
case
PSN_APPLY
:
{
int
i
=
SendMessageW
(
GetDlgItem
(
hDlg
,
IDC_RES_TRACKBAR
),
TBM_GETPOS
,
0
,
0
);
set_reg_key_dword
(
HKEY_LOCAL_MACHINE
,
logpixels_reg
,
"LogPixels"
,
i
);
apply
();
SetWindowLongPtr
(
hDlg
,
DWLP_MSGRESULT
,
PSNRET_NOERROR
);
break
;
...
...
@@ -351,6 +357,7 @@ GraphDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
buf
[
0
]
=
0
;
sprintf
(
buf
,
"%d"
,
i
);
SendMessage
(
GetDlgItem
(
hDlg
,
IDC_RES_DPIEDIT
),
WM_SETTEXT
,
0
,
(
LPARAM
)
buf
);
set_reg_key_dword
(
HKEY_LOCAL_MACHINE
,
logpixels_reg
,
"LogPixels"
,
i
);
break
;
}
}
...
...
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