mirror of
https://github.com/freedoom/freedoom.git
synced 2025-08-31 20:16:55 -04:00
BUILD: remove background color from textgen
remove the background color when generating the text, then remove the extraneous deutex arguments
This commit is contained in:
parent
617a15354f
commit
d3038fad30
3 changed files with 11 additions and 9 deletions
|
@ -11,7 +11,7 @@ import re
|
|||
from common import *
|
||||
|
||||
# Background color for output files.
|
||||
BACKGROUND_COLOR = '#00ffff'
|
||||
BACKGROUND_COLOR = None
|
||||
|
||||
# Width of a space character in pixels.
|
||||
SPACE_WIDTH = 4
|
||||
|
@ -142,10 +142,12 @@ for xy, string in args['strings']:
|
|||
command_line.extend(smallfont.draw_commands_for_text(
|
||||
string, xy[0], xy[1]))
|
||||
|
||||
command_line.extend((
|
||||
'-background', BACKGROUND_COLOR,
|
||||
'-flatten', args['filename'],
|
||||
))
|
||||
if BACKGROUND_COLOR is not None:
|
||||
command_line.extend((
|
||||
'-background', BACKGROUND_COLOR,
|
||||
'-flatten'
|
||||
))
|
||||
|
||||
command_line.extend((args['filename'],))
|
||||
invoke_command(command_line)
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ COLOR_RED = (0, 100, 100)
|
|||
COLOR_WHITE = (0, 0, 0)
|
||||
|
||||
# Background color for output files.
|
||||
BACKGROUND_COLOR = '#00ffff'
|
||||
BACKGROUND_COLOR = None
|
||||
|
||||
# Height of font in pixels.
|
||||
FONT_HEIGHT = 15
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue