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
916d3544
Commit
916d3544
authored
7 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Rename curs_blink to curs_blinks.
parent
7ed3b46d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/conio/bitmap_con.c
+7
-7
7 additions, 7 deletions
src/conio/bitmap_con.c
src/conio/vidmodes.c
+1
-1
1 addition, 1 deletion
src/conio/vidmodes.c
src/conio/vidmodes.h
+1
-1
1 addition, 1 deletion
src/conio/vidmodes.h
with
9 additions
and
9 deletions
src/conio/bitmap_con.c
+
7
−
7
View file @
916d3544
...
...
@@ -342,7 +342,7 @@ static int bitmap_attr2palette_locked(uint8_t attr, uint32_t *fgp, uint32_t *bgp
* the are both rows from the top of the cell.
* If vstat.curs_start > vstat.curs_end, the cursor is not shown.
* 3) If vstat.curs_visible is false, the cursor is not shown.
* 4) If vstat.curs_blink is false, the cursor does not blink.
* 4) If vstat.curs_blink
s
is false, the cursor does not blink.
* 5) When blinking, the cursor is shown when vstat.blink is true.
* 6) The *ONLY* thing that should be changing vstat.curs_col or
* vstat.curs_row is bitmap_gotoxy().
...
...
@@ -362,7 +362,7 @@ static BOOL bitmap_draw_cursor(void)
if
(
!
bitmap_initialized
)
return
ret
;
if
(
vstat
.
curs_visible
)
{
if
(
vstat
.
blink
||
(
!
vstat
.
curs_blink
))
{
if
(
vstat
.
blink
||
(
!
vstat
.
curs_blink
s
))
{
if
(
vstat
.
curs_start
<=
vstat
.
curs_end
)
{
xoffset
=
(
vstat
.
curs_col
-
1
)
*
vstat
.
charwidth
;
yoffset
=
(
vstat
.
curs_row
-
1
)
*
vstat
.
charheight
;
...
...
@@ -697,7 +697,7 @@ static int update_from_vmem(int force)
/* Redraw cursor? */
if
(
vstat
.
curs_visible
// Visible
&&
vstat
.
curs_start
<=
vstat
.
curs_end
// Should be drawn
&&
vstat
.
curs_blink
// Is blinking
&&
vstat
.
curs_blink
s
// Is blinking
&&
vstat
.
blink
!=
vs
.
blink
)
// Blink has changed
redraw_cursor
=
1
;
...
...
@@ -1189,7 +1189,7 @@ void bitmap_getcustomcursor(int *s, int *e, int *r, int *b, int *v)
if
(
r
)
*
r
=
vstat
.
charheight
;
if
(
b
)
*
b
=
vstat
.
curs_blink
;
*
b
=
vstat
.
curs_blink
s
;
if
(
v
)
*
v
=
vstat
.
curs_visible
;
pthread_mutex_unlock
(
&
vstatlock
);
...
...
@@ -1201,7 +1201,7 @@ void bitmap_setcustomcursor(int s, int e, int r, int b, int v)
double
ratio
;
int
oldstart
=
vstat
.
curs_start
;
int
oldend
=
vstat
.
curs_end
;
int
oldblink
=
vstat
.
curs_blink
;
int
oldblink
=
vstat
.
curs_blink
s
;
int
oldvisible
=
vstat
.
curs_visible
;
pthread_mutex_lock
(
&
blinker_lock
);
...
...
@@ -1215,13 +1215,13 @@ void bitmap_setcustomcursor(int s, int e, int r, int b, int v)
if
(
e
>=
0
)
vstat
.
curs_end
=
e
*
ratio
;
if
(
b
>=
0
)
vstat
.
curs_blink
=
b
;
vstat
.
curs_blink
s
=
b
;
if
(
v
>=
0
)
vstat
.
curs_visible
=
v
;
/* Did anything actually change? */
if
(
oldstart
!=
vstat
.
curs_start
||
oldend
!=
vstat
.
curs_end
||
oldblink
!=
vstat
.
curs_blink
||
oldblink
!=
vstat
.
curs_blink
s
||
oldvisible
!=
vstat
.
curs_visible
)
{
/* Erase the current cursor */
if
(
oldvisible
&&
oldstart
<=
oldend
)
...
...
This diff is collapsed.
Click to expand it.
src/conio/vidmodes.c
+
1
−
1
View file @
916d3544
...
...
@@ -304,7 +304,7 @@ int load_vmode(struct video_stats *vs, int mode)
vs
->
curs_end
=
vparams
[
i
].
curs_end
;
vs
->
default_curs_start
=
vparams
[
i
].
curs_start
;
vs
->
default_curs_end
=
vparams
[
i
].
curs_end
;
vs
->
curs_blink
=
1
;
vs
->
curs_blink
s
=
1
;
vs
->
curs_visible
=
1
;
vs
->
curs_row
=
1
;
vs
->
curs_col
=
1
;
...
...
This diff is collapsed.
Click to expand it.
src/conio/vidmodes.h
+
1
−
1
View file @
916d3544
...
...
@@ -76,7 +76,7 @@ struct video_stats {
int
curs_col
;
int
curs_start
;
int
curs_end
;
int
curs_blink
;
int
curs_blink
s
;
int
curs_visible
;
int
default_curs_start
;
int
default_curs_end
;
...
...
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