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
7eab767b
Commit
7eab767b
authored
17 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
bitmap_init*() must NOT call any drawing callbacks.
parent
f43bbedf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/bitmap_con.c
+1
-9
1 addition, 9 deletions
src/conio/bitmap_con.c
with
1 addition
and
9 deletions
src/conio/bitmap_con.c
+
1
−
9
View file @
7eab767b
...
...
@@ -159,15 +159,8 @@ int bitmap_init_mode(int mode, int *width, int *height)
screen
=
newscreen
;
memset
(
screen
,
vstat
.
palette
[
0
],
screenwidth
*
screenheight
);
pthread_mutex_unlock
(
&
screenlock
);
/* TODO: Re-enable this
send_rectangle(0,0,screenwidth,screenheight,TRUE);
*/
pthread_mutex_unlock
(
&
vstatlock
);
bitmap_loadfont
(
NULL
);
/* TODO: Remove this next line */
pthread_mutex_lock
(
&
vstatlock
);
update_rect
(
1
,
1
,
cio_textinfo
.
screenwidth
,
cio_textinfo
.
screenheight
,
TRUE
,
TRUE
);
pthread_mutex_unlock
(
&
vstatlock
);
cio_textinfo
.
attribute
=
7
;
cio_textinfo
.
normattr
=
7
;
...
...
@@ -484,6 +477,7 @@ int bitmap_loadfont(char *filename)
}
}
force_redraws
++
;
pthread_mutex_unlock
(
&
vstatlock
);
return
(
0
);
}
...
...
@@ -602,7 +596,6 @@ static int update_rect(int sx, int sy, int width, int height, int force, int cal
int
this_rect_used
=
0
;
struct
rectangle
last_rect
;
int
last_rect_used
=
0
;
int
sent
=
FALSE
;
if
(
sx
==
0
&&
sy
==
0
&&
width
==
0
&&
height
==
0
)
fullredraw
=
1
;
...
...
@@ -649,7 +642,6 @@ static int update_rect(int sx, int sy, int width, int height, int force, int cal
)
{
last_vmem
[
pos
]
=
vstat
.
vmem
[
pos
];
bitmap_draw_one_char
(
sx
+
x
,
sy
+
y
);
sent
=
TRUE
;
if
(
calls_send
)
{
if
(
lastcharupdated
)
{
...
...
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