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
7dd9d919
Commit
7dd9d919
authored
3 weeks ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Remove hot-spots as soon as they scroll off the screen.
Don't keep them around until there's no hotspots left.
parent
884fa9d0
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#8839
passed
3 weeks ago
Stage: build
Stage: test
Stage: cleanup
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/terminal.cpp
+11
-2
11 additions, 2 deletions
src/sbbs3/terminal.cpp
with
11 additions
and
2 deletions
src/sbbs3/terminal.cpp
+
11
−
2
View file @
7dd9d919
...
@@ -24,10 +24,19 @@ void Terminal::scroll_hotspots(unsigned count)
...
@@ -24,10 +24,19 @@ void Terminal::scroll_hotspots(unsigned count)
return
;
return
;
unsigned
spots
=
0
;
unsigned
spots
=
0
;
unsigned
remain
=
0
;
unsigned
remain
=
0
;
for
(
list_node_t
*
node
=
mouse_hotspots
->
first
;
node
!=
NULL
;
node
=
node
->
next
)
{
list_node_t
*
node
=
mouse_hotspots
->
first
;
while
(
node
!=
NULL
)
{
struct
mouse_hotspot
*
spot
=
(
struct
mouse_hotspot
*
)
node
->
data
;
struct
mouse_hotspot
*
spot
=
(
struct
mouse_hotspot
*
)
node
->
data
;
spot
->
y
-=
count
;
list_node_t
*
next
=
node
->
next
;
if
(
spot
->
y
>=
count
)
{
spot
->
y
-=
count
;
remain
++
;
}
else
{
listRemoveNode
(
mouse_hotspots
,
node
,
true
);
}
spots
++
;
spots
++
;
node
=
next
;
}
}
#ifdef _DEBUG
#ifdef _DEBUG
if
(
spots
)
if
(
spots
)
...
...
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