Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
4280408d
Commit
4280408d
authored
Mar 07, 2022
by
Rob Swindell
💬
Browse files
Throw an error if trying to convert a > 1-bit BMP file to XBin
parent
304f7293
Pipeline
#2853
passed with stage
in 9 minutes and 50 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
exec/xbimage.js
exec/xbimage.js
+5
-2
No files found.
exec/xbimage.js
View file @
4280408d
// $Id: xbimage.js,v 1.6 2020/04/19 19:52:31 rswindell Exp $
// Utility module for creating and displaying XBin image files.
// Utility module for creating and displaying XBin image files.
load
(
'
sbbsdefs.js
'
);
load
(
'
sbbsdefs.js
'
);
...
@@ -34,6 +32,11 @@ function convert_from_bmp(filename, charheight, fg_color, bg_color, palette, inv
...
@@ -34,6 +32,11 @@ function convert_from_bmp(filename, charheight, fg_color, bg_color, palette, inv
return
false
;
return
false
;
}
}
if
(
bmp
.
infoheader
.
biBitCount
!=
1
)
{
alert
(
format
(
"
Bit-count (%d) must be 1 (monochrome)
"
,
bmp
.
infoheader
.
biBitCount
));
return
false
;
}
// Add SAUCE
// Add SAUCE
var
sauce
=
{
var
sauce
=
{
title
:
title
?
title
:
filename
title
:
title
?
title
:
filename
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment