Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old March 29, 2009, 23:08   #21
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,946
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by RogerN View Post
I've already converted all the Sangband .FON files into bitmaps. I can upload them if anyone else is interested. The only reason I used BMP instead of PNG is so that the *band source code does not need to be linked to any external libraries.
How did you go about doing it?

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-
takkaria is offline   Reply With Quote
Old March 30, 2009, 00:36   #22
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 308
RogerN is on a distinguished road
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.
RogerN is offline   Reply With Quote
Old March 30, 2009, 04:50   #23
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 308
RogerN is on a distinguished road
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.
RogerN is offline   Reply With Quote
Old March 30, 2009, 17:27   #24
Fuma
Adept
 
Fuma's Avatar
 
Join Date: May 2007
Posts: 114
Fuma is on a distinguished road
Quote:
Originally Posted by RogerN View Post
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.
Thank you very, very much.
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
Fuma is offline   Reply With Quote
Old March 30, 2009, 17:48   #25
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 308
RogerN is on a distinguished road
Quote:
Originally Posted by Fuma View Post
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.
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.
RogerN is offline   Reply With Quote
Old March 30, 2009, 17:56   #26
Fuma
Adept
 
Fuma's Avatar
 
Join Date: May 2007
Posts: 114
Fuma is on a distinguished road
Quote:
Originally Posted by RogerN View Post
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.
I love you.
__________________
www.snowleopard.org - International Snow Leopard Trust
Fuma is offline   Reply With Quote
Old March 31, 2009, 00:10   #27
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 308
RogerN is on a distinguished road
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.
RogerN is offline   Reply With Quote
Old March 31, 2009, 17:24   #28
Fuma
Adept
 
Fuma's Avatar
 
Join Date: May 2007
Posts: 114
Fuma is on a distinguished road
Quote:
Originally Posted by RogerN View Post
Updated release to fix the flicker (same link/file name as before)
Thank you so much. I'll try to give it a more thorough testing sometime later this weekend, but after a quick dive and death, everything looks perfect.

Thank you so, so much :D
__________________
www.snowleopard.org - International Snow Leopard Trust
Fuma is offline   Reply With Quote
Old March 31, 2009, 19:38   #29
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,946
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by RogerN View Post
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.
Can has source code pls? Kthxbai.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old April 1, 2009, 00:22   #30
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 308
RogerN is on a distinguished road
Quote:
Originally Posted by takkaria View Post
Can has source code pls? Kthxbai.
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
RogerN is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Emergency fix for stat potion scarcity? Donald Jonker Vanilla 15 January 16, 2009 05:38
Help With Walls In Vista z118 Vanilla 2 December 8, 2008 16:44
wall building? Slick Vanilla 8 November 1, 2007 02:29
Vanilla freezes in Vista after a few seconds pamperedpeterson Vanilla 4 September 19, 2007 02:25
Any way to fix the Esc problem for Linux? TJA Vanilla 6 August 17, 2007 15:42


All times are GMT +1. The time now is 01:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.