![]() |
#21 | |
Veteran
Join Date: Apr 2007
Posts: 1,950
Donated: $40
![]() |
Quote:
It looks like shifting to using BMPs on Windows (and FON or BDF files for variants with SDL ports) might be a viable and enduring solution to font troubles to do for the various Angbands, if there's some reasonably automatic way to convert from one to the other and someone would be happy to write the BMP plotting code...
__________________
takkaria whispers something about options. -more- |
|
![]() |
![]() |
![]() |
#22 |
Swordsman
Join Date: Jul 2008
Posts: 308
![]() |
Download Sangband font bitmaps
I used the test application that I was messing with (from earlier in the thread) to draw characters 0-255 in rows of 16 characters. But since this method uses the same text drawing code in Angband, the conversion wouldn't work on Vista. You'd have to create the bitmaps on a non-Vista machine, or parse the font files yourself to extract the bitmaps. |
![]() |
![]() |
![]() |
#23 |
Swordsman
Join Date: Jul 2008
Posts: 308
![]() |
I just finished a quick-and-dirty Sangband patch based on camlost's most recent unofficial version. I'd appreciate it if some Vista users would try it out (I don't have access to a Vista machine at the moment) and see if it fixes their display problems.
Completely Unofficial Sangband with BMPs instead of FONs All .FON files have been removed and replaced with corresponding BMPs. I'm happy to release the code if this tests out OK, but it's not up to official Angband coding standards yet. That will take more time. |
![]() |
![]() |
![]() |
#24 | |
Adept
Join Date: May 2007
Posts: 114
![]() |
Quote:
It works well. I had to change the ".FON" in config.ini to ".BMP" to get the correct font sizes, and it worked very well. I do not know if it's configurable, but when refreshing rapidly, or just running along corridors (I like to have the @ in the middle of the screen) there is this white flicker. It's not that bad compared to wallless Sangband, but if it is possible to change the flickering stripes from white to black, I'd be even more thankful.
__________________
www.snowleopard.org - International Snow Leopard Trust |
|
![]() |
![]() |
![]() |
#25 |
Swordsman
Join Date: Jul 2008
Posts: 308
![]() |
I think I know what's causing the flicker, and if I'm right then it should be easy to fix. I can try using a different method of combining the desired foreground color with the font bitmaps when blitting, and that ought to do the trick.
|
![]() |
![]() |
![]() |
#26 |
Adept
Join Date: May 2007
Posts: 114
![]() |
I love you.
__________________
www.snowleopard.org - International Snow Leopard Trust |
![]() |
![]() |
![]() |
#27 |
Swordsman
Join Date: Jul 2008
Posts: 308
![]() |
Updated release to fix the flicker (same link/file name as before)
I believe that the above file should fix your flicker problems. Nothing has changed except Sangband.exe, so you can just copy the executable out of the archive if you like. The flicker was caused by drawing the foreground color first and then merging it with the font bitmap. I had overlooked the very useful MERGECOPY operation, which essentially merges the font bitmap with the foreground color at the same time it's drawn to the screen. |
![]() |
![]() |
![]() |
#28 | |
Adept
Join Date: May 2007
Posts: 114
![]() |
Quote:
Thank you so, so much :D
__________________
www.snowleopard.org - International Snow Leopard Trust |
|
![]() |
![]() |
![]() |
#29 | |
Veteran
Join Date: Apr 2007
Posts: 1,950
Donated: $40
![]() |
Quote:
![]()
__________________
takkaria whispers something about options. -more- |
|
![]() |
![]() |
![]() |
#30 |
Swordsman
Join Date: Jul 2008
Posts: 308
![]() |
My ugly hacks are based on camlost's unofficial Sangband code. Only three source files were modified:
intrface.h intrface.c main-win.c Download changed files Disclaimers: - SDL stuff won't compile because I broke it and didn't bother fixing it - USE_GRAPHICS is a must because the bitmap routines are needed for reading the font bitmaps - I also broke the function Term_text_special_win, which I think is only used when graphical tiles are in play. It can be fixed by creating another version of the font bitmaps with an alpha channel which can be used to draw transparent characters |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Emergency fix for stat potion scarcity? | Donald Jonker | Vanilla | 15 | January 16, 2009 04:38 |
Help With Walls In Vista | z118 | Vanilla | 2 | December 8, 2008 15:44 |
wall building? | Slick | Vanilla | 8 | November 1, 2007 01:29 |
Vanilla freezes in Vista after a few seconds | pamperedpeterson | Vanilla | 4 | September 19, 2007 01:25 |
Any way to fix the Esc problem for Linux? | TJA | Vanilla | 6 | August 17, 2007 14:42 |