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
b8e7590f
Commit
b8e7590f
authored
20 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
WIN_EXTKEYS mode flag is required for ulist to return negative values for
extended keys.
parent
0527f536
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/uifc/uifc.h
+2
-2
2 additions, 2 deletions
src/uifc/uifc.h
src/uifc/uifc32.c
+4
-2
4 additions, 2 deletions
src/uifc/uifc32.c
with
6 additions
and
4 deletions
src/uifc/uifc.h
+
2
−
2
View file @
b8e7590f
...
...
@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 200
3
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 200
4
Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
...
...
@@ -131,7 +131,7 @@
#define MSK_DEL 0x20000000
#define MSK_GET 0x30000000
#define MSK_PUT 0x40000000
/* Dont forget, negative return values are used for extended keys! */
/* Dont forget, negative return values are used for extended keys
(if WIN_EXTKEYS used)
! */
#else
#define MAX_OPTS 500
/* Maximum number of options per menu call */
#define MSK_ON 0xf000
...
...
This diff is collapsed.
Click to expand it.
src/uifc/uifc32.c
+
4
−
2
View file @
b8e7590f
...
...
@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 200
3
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 200
4
Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
...
...
@@ -1402,7 +1402,9 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
}
break
;
default:
return
(
-
2
-
i
);
if
(
mode
&
WIN_EXTKEYS
)
return
(
-
2
-
i
);
break
;
}
}
else
{
...
...
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