Draft
Conversation
3edf20d to
8eb3a23
Compare
y4my4my4m
commented
Aug 25, 2023
| #include "~/HomeWrappers" | ||
| MapFileLoad("::/Kernel/Kernel"); | ||
| MapFileLoad("::/Compiler/Compiler"); | ||
| #include "::/Demo/Graphics/WallPaperDolDoc" |
Collaborator
Author
There was a problem hiding this comment.
@GutPuncher
This won't display the wallpaper on boot, but it will allow for the HomeKeyPlugIns Alt+F10 / Alt+F11 to work.
I'd actually prefer not doing it this way.
y4my4my4m
commented
Aug 25, 2023
| (*gr.fp_wall_paper)(task); | ||
| } | ||
| else if (!(task->win_inhibit & WIF_SELF_DOC)) | ||
| /* else */ if (!(task->win_inhibit & WIF_SELF_DOC)) |
Collaborator
Author
There was a problem hiding this comment.
I haven't noticed any bug from doing this, however the wallpaper won't display without it.
I've decided to modify the GrScreen instead of asking the user to do it.
Collaborator
Author
To add to the wiki if this gets mergedpng to ansi convertion script#!/bin/bash
function ANSi() {
tr '\0' ' ' < "$1" | iconv -f CP437 -t UTF8
}
# Check if argument is passed
if [ $# -eq 0 ]
then
echo "No arguments supplied"
exit 1
fi
REZ=1024
# REZ=1280
# 1024x768
ansir --width 127 --height 95 --colors basic --background dark --mode shaded "png/$REZ/$1.png" > "ans/$REZ/$1.ans"
# 1280x720
# ansir --width 159 --height 89 --colors basic --background dark --mode shaded "png/$REZ/$1.png" > "ans/$REZ/$1.ans"
# Second command
python convert_nfo.py "ans/$REZ/$1.ans" "ans/$REZ/$1.ans"
# Third command
ANSi "ans/$REZ/$1.ans"
cp "ans/$REZ/$1.ans" "ZealOS/src/Home/Wallpapers/1024/$1_$REZ.ans"Ansir is this tool: https://github.com/y4my4my4m/ansir I'll add a complete tutorial on the wiki in due time |
Collaborator
Author
|
Forgot to include: #!/usr/bin/env python
import codecs, sys
try:
infile, outfile = sys.argv[1], sys.argv[2]
except IndexError:
sys.stderr.write('usage: %s input_file output_file\n' % sys.argv[0])
sys.exit(1)
nfo = codecs.open(infile, encoding='utf-8').read()
codecs.open(outfile, 'w', encoding='cp437').write(nfo) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.