Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
dd2c3701
Commit
dd2c3701
authored
1 year ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Fix ALT key handling
parent
6a907f6f
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Pipeline
#4149
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/win32gdi.c
+3
-3
3 additions, 3 deletions
src/conio/win32gdi.c
with
3 additions
and
3 deletions
src/conio/win32gdi.c
+
3
−
3
View file @
dd2c3701
...
...
@@ -12,7 +12,6 @@ static HWND win;
static
HANDLE
rch
;
static
HANDLE
wch
;
static
FILE
*
debug
;
static
uint8_t
*
title
;
#define WM_USER_INVALIDATE WM_USER
...
...
@@ -239,7 +238,7 @@ magic_message(MSG msg)
for
(
i
=
0
;
keyval
[
i
].
VirtualKeyCode
!=
0
;
i
++
)
{
if
(
keyval
[
i
].
VirtualKeyCode
==
msg
.
wParam
)
{
if
(
msg
.
lParam
&
(
0x2000
))
{
if
(
msg
.
lParam
&
(
1
<<
29
))
{
if
(
keyval
[
i
].
ALT
>
255
)
{
add_key
(
keyval
[
i
].
ALT
);
return
true
;
...
...
@@ -267,6 +266,8 @@ magic_message(MSG msg)
}
}
break
;
case
WM_PAINT
:
break
;
}
return
false
;
...
...
@@ -470,7 +471,6 @@ gdi_init(int mode)
int
gdi_initciolib
(
int
mode
)
{
debug
=
fopen
(
"gdi.log"
,
"w"
);
pthread_mutex_init
(
&
gdi_headlock
,
NULL
);
pthread_mutex_init
(
&
rect_lock
,
NULL
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment