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
a489c48d
Commit
a489c48d
authored
5 months ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
SAA5050 is 25 rows, not 24.
This means the crappy 40-column status line can be used!
parent
eac03971
No related branches found
No related tags found
No related merge requests found
Pipeline
#7975
passed
5 months ago
Stage: build
Stage: test
Stage: cleanup
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/conio/bitmap_con.c
+10
-10
10 additions, 10 deletions
src/conio/bitmap_con.c
src/conio/ciolib.h
+1
-1
1 addition, 1 deletion
src/conio/ciolib.h
src/conio/vidmodes.c
+1
-1
1 addition, 1 deletion
src/conio/vidmodes.c
src/syncterm/syncterm.c
+2
-2
2 additions, 2 deletions
src/syncterm/syncterm.c
with
14 additions
and
14 deletions
src/conio/bitmap_con.c
+
10
−
10
View file @
a489c48d
...
@@ -266,7 +266,7 @@ bitmap_vmem_puttext_locked(int sx, int sy, int ex, int ey, struct vmem_cell *fil
...
@@ -266,7 +266,7 @@ bitmap_vmem_puttext_locked(int sx, int sy, int ex, int ey, struct vmem_cell *fil
for
(
y
=
sy
-
1
;
y
<
ey
;
y
++
)
{
for
(
y
=
sy
-
1
;
y
<
ey
;
y
++
)
{
vc
=
vmem_cell_ptr
(
vstat
.
vmem
,
sx
-
1
,
y
);
vc
=
vmem_cell_ptr
(
vstat
.
vmem
,
sx
-
1
,
y
);
for
(
x
=
sx
-
1
;
x
<
ex
;
x
++
)
{
for
(
x
=
sx
-
1
;
x
<
ex
;
x
++
)
{
if
(
vstat
.
mode
==
PRESTEL_40X2
4
&&
((
vc
->
bg
&
0x02000000
)
||
(
fi
->
bg
&
0x02000000
)))
{
if
(
vstat
.
mode
==
PRESTEL_40X2
5
&&
((
vc
->
bg
&
0x02000000
)
||
(
fi
->
bg
&
0x02000000
)))
{
if
((
vc
->
bg
&
0x01000000
)
!=
(
fi
->
bg
&
0x01000000
))
{
if
((
vc
->
bg
&
0x01000000
)
!=
(
fi
->
bg
&
0x01000000
))
{
// *ANY* change to double-height potentially changes
// *ANY* change to double-height potentially changes
// *EVERY* character on the screen
// *EVERY* character on the screen
...
@@ -274,7 +274,7 @@ bitmap_vmem_puttext_locked(int sx, int sy, int ex, int ey, struct vmem_cell *fil
...
@@ -274,7 +274,7 @@ bitmap_vmem_puttext_locked(int sx, int sy, int ex, int ey, struct vmem_cell *fil
}
}
}
}
*
vc
=
*
(
fi
++
);
*
vc
=
*
(
fi
++
);
if
(
vstat
.
mode
==
PRESTEL_40X2
4
&&
(
vc
->
bg
&
0x02000000
))
{
if
(
vstat
.
mode
==
PRESTEL_40X2
5
&&
(
vc
->
bg
&
0x02000000
))
{
if
(
vc
->
legacy_attr
&
0x08
)
{
if
(
vc
->
legacy_attr
&
0x08
)
{
if
(
cio_api
.
options
&
CONIO_OPT_PRESTEL_REVEAL
)
if
(
cio_api
.
options
&
CONIO_OPT_PRESTEL_REVEAL
)
vc
->
bg
|=
0x08000000
;
vc
->
bg
|=
0x08000000
;
...
@@ -314,7 +314,7 @@ set_vmem_cell(size_t x, size_t y, uint16_t cell, uint32_t fg, uint32_t bg)
...
@@ -314,7 +314,7 @@ set_vmem_cell(size_t x, size_t y, uint16_t cell, uint32_t fg, uint32_t bg)
vc
->
legacy_attr
=
cell
>>
8
;
vc
->
legacy_attr
=
cell
>>
8
;
vc
->
ch
=
cell
&
0xff
;
vc
->
ch
=
cell
&
0xff
;
vc
->
fg
=
fg
;
vc
->
fg
=
fg
;
if
(
vstat
.
mode
==
PRESTEL_40X2
4
&&
((
vc
->
bg
&
0x02000000
)
||
(
bg
&
0x02000000
)))
{
if
(
vstat
.
mode
==
PRESTEL_40X2
5
&&
((
vc
->
bg
&
0x02000000
)
||
(
bg
&
0x02000000
)))
{
if
(
vc
->
legacy_attr
&
0x08
)
{
if
(
vc
->
legacy_attr
&
0x08
)
{
if
(
cio_api
.
options
&
CONIO_OPT_PRESTEL_REVEAL
)
if
(
cio_api
.
options
&
CONIO_OPT_PRESTEL_REVEAL
)
vc
->
bg
|=
0x08000000
;
vc
->
bg
|=
0x08000000
;
...
@@ -327,7 +327,7 @@ set_vmem_cell(size_t x, size_t y, uint16_t cell, uint32_t fg, uint32_t bg)
...
@@ -327,7 +327,7 @@ set_vmem_cell(size_t x, size_t y, uint16_t cell, uint32_t fg, uint32_t bg)
request_redraw_locked
();
request_redraw_locked
();
}
}
}
}
if
(
vstat
.
mode
==
PRESTEL_40X2
4
&&
(
vc
->
bg
&
0x02000000
))
{
if
(
vstat
.
mode
==
PRESTEL_40X2
5
&&
(
vc
->
bg
&
0x02000000
))
{
if
(
vc
->
legacy_attr
&
0x08
)
{
if
(
vc
->
legacy_attr
&
0x08
)
{
if
(
cio_api
.
options
&
CONIO_OPT_PRESTEL_REVEAL
)
if
(
cio_api
.
options
&
CONIO_OPT_PRESTEL_REVEAL
)
vc
->
bg
|=
0x08000000
;
vc
->
bg
|=
0x08000000
;
...
@@ -403,7 +403,7 @@ static void cb_drawrect(struct rectlist *data)
...
@@ -403,7 +403,7 @@ static void cb_drawrect(struct rectlist *data)
*/
*/
assert_rwlock_rdlock
(
&
vstatlock
);
assert_rwlock_rdlock
(
&
vstatlock
);
if
(
cursor_visible_locked
())
{
if
(
cursor_visible_locked
())
{
if
(
vstat
.
mode
==
PRESTEL_40X2
4
)
if
(
vstat
.
mode
==
PRESTEL_40X2
5
)
cv
=
0x80FFFFFF
;
cv
=
0x80FFFFFF
;
else
else
cv
=
color_value
(
ciolib_fg
);
cv
=
color_value
(
ciolib_fg
);
...
@@ -626,7 +626,7 @@ calc_charstate(struct blockstate *bs, struct vmem_cell *vc, struct charstate *cs
...
@@ -626,7 +626,7 @@ calc_charstate(struct blockstate *bs, struct vmem_cell *vc, struct charstate *cs
cs
->
bg
=
vc
->
bg
;
cs
->
bg
=
vc
->
bg
;
cs
->
extra_rows
=
0
;
cs
->
extra_rows
=
0
;
if
(
vstat
.
mode
==
PRESTEL_40X2
4
&&
(
vc
->
bg
&
0x02000000
))
{
if
(
vstat
.
mode
==
PRESTEL_40X2
5
&&
(
vc
->
bg
&
0x02000000
))
{
unsigned
char
lattr
;
unsigned
char
lattr
;
bool
top
=
false
;
bool
top
=
false
;
bool
bottom
=
false
;
bool
bottom
=
false
;
...
@@ -860,7 +860,7 @@ bitmap_draw_vmem_locked(int sx, int sy, int ex, int ey, struct vmem_cell *fill)
...
@@ -860,7 +860,7 @@ bitmap_draw_vmem_locked(int sx, int sy, int ex, int ey, struct vmem_cell *fill)
// Fill in charstate for this pass
// Fill in charstate for this pass
bool
cheat
=
true
;
bool
cheat
=
true
;
if
(
vstat
.
mode
==
PRESTEL_40X2
4
)
{
if
(
vstat
.
mode
==
PRESTEL_40X2
5
)
{
cheat
=
false
;
cheat
=
false
;
}
}
else
{
else
{
...
@@ -991,7 +991,7 @@ static void blinker_thread(void *data)
...
@@ -991,7 +991,7 @@ static void blinker_thread(void *data)
assert_rwlock_wrlock
(
&
vstatlock
);
assert_rwlock_wrlock
(
&
vstatlock
);
switch
(
vstat
.
mode
)
{
switch
(
vstat
.
mode
)
{
case
PRESTEL_40X2
4
:
case
PRESTEL_40X2
5
:
if
(
next_cursor
<
now
)
{
if
(
next_cursor
<
now
)
{
curs_changed
=
cursor_visible_locked
();
curs_changed
=
cursor_visible_locked
();
if
(
vstat
.
curs_blink
)
{
if
(
vstat
.
curs_blink
)
{
...
@@ -1147,7 +1147,7 @@ same_cell(struct vmem_cell *bitmap_cell, struct vmem_cell *c2)
...
@@ -1147,7 +1147,7 @@ same_cell(struct vmem_cell *bitmap_cell, struct vmem_cell *c2)
if
(
bitmap_cell
->
ch
!=
c2
->
ch
)
if
(
bitmap_cell
->
ch
!=
c2
->
ch
)
return
false
;
return
false
;
// Handles reveal/unreveal updates, modifies vmem
// Handles reveal/unreveal updates, modifies vmem
if
(
vstat
.
mode
==
PRESTEL_40X2
4
&&
(
c2
->
bg
&
0x02000000
))
{
if
(
vstat
.
mode
==
PRESTEL_40X2
5
&&
(
c2
->
bg
&
0x02000000
))
{
if
(
c2
->
legacy_attr
&
0x08
)
{
if
(
c2
->
legacy_attr
&
0x08
)
{
if
(
cio_api
.
options
&
CONIO_OPT_PRESTEL_REVEAL
)
if
(
cio_api
.
options
&
CONIO_OPT_PRESTEL_REVEAL
)
c2
->
bg
|=
0x08000000
;
c2
->
bg
|=
0x08000000
;
...
@@ -1448,7 +1448,7 @@ int bitmap_setfont(int font, int force, int font_num)
...
@@ -1448,7 +1448,7 @@ int bitmap_setfont(int font, int force, int font_num)
if
(
conio_fontdata
[
font
].
eight_by_sixteen
!=
NULL
)
{
if
(
conio_fontdata
[
font
].
eight_by_sixteen
!=
NULL
)
{
newmode
=
C80
;
newmode
=
C80
;
if
(
conio_fontdata
[
font
].
cp
==
CIOLIB_PRESTEL
)
if
(
conio_fontdata
[
font
].
cp
==
CIOLIB_PRESTEL
)
newmode
=
PRESTEL_40X2
4
;
newmode
=
PRESTEL_40X2
5
;
}
}
else
if
(
conio_fontdata
[
font
].
eight_by_fourteen
!=
NULL
)
else
if
(
conio_fontdata
[
font
].
eight_by_fourteen
!=
NULL
)
newmode
=
C80X28
;
newmode
=
C80X28
;
...
...
This diff is collapsed.
Click to expand it.
src/conio/ciolib.h
+
1
−
1
View file @
a489c48d
...
@@ -203,7 +203,7 @@ enum text_modes
...
@@ -203,7 +203,7 @@ enum text_modes
VESA_132X50
=
206
,
VESA_132X50
=
206
,
VESA_132X60
=
196
,
VESA_132X60
=
196
,
PRESTEL_40X2
4
=
254
,
PRESTEL_40X2
5
=
254
,
/* Custom Mode */
/* Custom Mode */
CIOLIB_MODE_CUSTOM
=
255
,
// Last mode... if it's over 255, text_info can't hold it.
CIOLIB_MODE_CUSTOM
=
255
,
// Last mode... if it's over 255, text_info can't hold it.
...
...
This diff is collapsed.
Click to expand it.
src/conio/vidmodes.c
+
1
−
1
View file @
a489c48d
...
@@ -125,7 +125,7 @@ struct video_params vparams[] = {
...
@@ -125,7 +125,7 @@ struct video_params vparams[] = {
/* DigitalMon */
/* DigitalMon */
{
LCD80X25
,
COLOUR_PALETTE
,
80
,
25
,
14
,
15
,
16
,
8
,
7
,
0
,
8
,
5
,
640
,
400
},
{
LCD80X25
,
COLOUR_PALETTE
,
80
,
25
,
14
,
15
,
16
,
8
,
7
,
0
,
8
,
5
,
640
,
400
},
/* Prestel */
/* Prestel */
{
PRESTEL_40X2
4
,
PRESTEL_PALETTE
,
40
,
2
4
,
14
,
15
,
20
,
12
,
7
,
0
,
4
,
3
,
480
,
48
0
},
{
PRESTEL_40X2
5
,
PRESTEL_PALETTE
,
40
,
2
5
,
14
,
15
,
20
,
12
,
7
,
0
,
4
,
3
,
480
,
50
0
},
/* Custom mode */
/* Custom mode */
{
CIOLIB_MODE_CUSTOM
,
COLOUR_PALETTE
,
80
,
25
,
14
,
15
,
16
,
8
,
7
,
0
,
0
,
0
,
-
1
,
-
1
},
{
CIOLIB_MODE_CUSTOM
,
COLOUR_PALETTE
,
80
,
25
,
14
,
15
,
16
,
8
,
7
,
0
,
0
,
0
,
-
1
,
-
1
},
};
};
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/syncterm.c
+
2
−
2
View file @
a489c48d
...
@@ -2360,7 +2360,7 @@ screen_to_ciolib(int screen)
...
@@ -2360,7 +2360,7 @@ screen_to_ciolib(int screen)
case
SCREEN_MODE_VGA_80X25
:
case
SCREEN_MODE_VGA_80X25
:
return
VGA80X25
;
return
VGA80X25
;
case
SCREEN_MODE_PRESTEL
:
case
SCREEN_MODE_PRESTEL
:
return
PRESTEL_40X2
4
;
return
PRESTEL_40X2
5
;
}
}
gettextinfo
(
&
ti
);
gettextinfo
(
&
ti
);
return
ti
.
currmode
;
return
ti
.
currmode
;
...
@@ -2418,7 +2418,7 @@ ciolib_to_screen(int ciolib)
...
@@ -2418,7 +2418,7 @@ ciolib_to_screen(int ciolib)
return
SCREEN_MODE_EGA_80X25
;
return
SCREEN_MODE_EGA_80X25
;
case
VGA80X25
:
case
VGA80X25
:
return
SCREEN_MODE_VGA_80X25
;
return
SCREEN_MODE_VGA_80X25
;
case
PRESTEL_40X2
4
:
case
PRESTEL_40X2
5
:
return
SCREEN_MODE_PRESTEL
;
return
SCREEN_MODE_PRESTEL
;
}
}
return
SCREEN_MODE_CURRENT
;
return
SCREEN_MODE_CURRENT
;
...
...
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