-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difficulty building the project with expanded color features for SDL #6
Comments
levels. Win32a supports just about everything: blinking text,
interested in it, because it didn't support Unicode. An 8-bit
PDCurses lacks RGB or blinking text. The blinking may not be all
in a box' actually in a box, and the 'Underlined' text should http://www.projectpluto.com/sdl_newtest.png
exactly like this, and you may need to resize the window a little.
I hadn't noticed that 'Makefile.mng' didn't build the 'newtest' demo; -- Bill On 2016-05-26 20:20, JoyBunny wrote:
|
Gotcha, I think I understand a little better. I will try to better understand the differences between the different versions to use the one best suited to my needs. On an unrelated side note, do you understand how to use sdlfonts with pdcurses? McBrine gave me a link to https://sourceforge.net/projects/pdcurses/files/sdlfonts/1.0/ but I'm a bit confused how to build with it. |
Hello? Was that a stupid question? |
On 2016-05-27 21:40, JoyBunny wrote:
answer, and am not completely certain that I do now. I think I did
8-bit code, it defaults to using the font defined in 'deffont.h'.
and have that used instead. Look at line 162 and following in
WIDE=Y, the code in the preceding thirty or so lines is used
'sdlfonts' .bmp files can be used, and you get Unicode up to
-- Bill |
Ok, so let's say I'm opting for the "pdcfont.bmp" method because it seems like the easiest one to do. If I make a program that uses this library, where exactly does the font need to go? In the same place as the executable? The executable that directly calls initscrn(). That's what I've been opting to do, but no matter what I try, it uses the font in deffont.h instead. |
On 2016-05-28 18:09, JoyBunny wrote:
path, such as PDC_FONT=c:\foldername1\whatever\pdcfont.bmp
PDC_FONT=pdcfont.bmp
'deffont.h'! -- Bill |
I will definitely try in a moment, though if you change your mind and decide to test it, please please please let me know. |
Success! You will rarely find a greater idiot than I. Perhaps if my file wasn't named "pdc_font.bmp.bmp" I might have found better luck days ago. One final question that is more specific to your fork, about the available 256 colors, before I close this issue. I want to know what sort of rhyme or reason dictates the order they are sorted in. I was trying to think of ways to line them up by hue so I could more carefully consider which ones to use and where. In any case, all that this has convinced me to do is seriously reconsider relying on SDL if I'm not intending to extensively use its features. In that case, I would most definitely opt for your Win32a build over anything else, unless there's reasons not to? |
One more struggle before bed, I've been experimenting with many of the SDL fonts provided at the link above, and all seemed to work with colors. I tried to make my own with the same format, but colors do not seem to work properly on them. The backgrounds will change color normally, but the fonts stay white. What am I missing here? I have my font file attached. |
On 2016-05-29 00:25, JoyBunny wrote:
to puzzle out.
have been fixed in hardware, so that you could get eight colors and then
I was trying to think of ways to line them up by hue so I
the RGB text and "real blinking". If you decide to go cross-platform
mailing list. Quite a bit of effort went into the SDL flavor, and there -- Bill
|
about the Windows .BMP format, which has a variety of odd extensions.
file and an sdlfonts.zip one, and reading Wackypedia's description of -- Bill On 2016-05-29 02:07, JoyBunny wrote:
|
We moved through really a variety of issues in this thread; I think the only thing extant is that the bitmaps for SDL1 have to be "real" binary bitmaps, not color ones that happen to have only two colors. I don't see a fix for this, nor do I see it as much of a problem, and I'm sort of hoping that SDL1 is dropped anyway in favor of SDL2 (which actually supports Unicode). So I'm closing this. |
I'm not 100% sure this is how to use the issue tracker, and maybe this is more a symptom of my lack of experience than a problem with the project. I've struggled with understanding wmcbrine/PDCurses too.
I had MinGW on my Windows 7 machine when I managed to build the SDL version of the library, but newtest.c is not set up to compile in the makefile. So I took a stab and added it there myself. After compiling, I was able to successfully run the .exe, but somehow or another I can't replicate the same effect on Windows as seen in this screenshot on your page: www.projectpluto.com/win32a.gif
Blinking never worked properly. But more annoyingly, the text meant to demonstrate full RGB was a mess and seems to have something to do with the program not having 64-bit chtypes or something? I literally have no idea, and this is probably where my newbish inclinations are showing.
So if I'm not being too annoying, can you explain to me like I'm five just how to build the library properly and set up the compiler/code to use these features correctly? I studied the syntax closely in newtest.c so I sort of understand it, but without being to replicate that behavior I'm just at a loss.
The text was updated successfully, but these errors were encountered: