Christoph Oelckers
eb69bbcae0
- replaced MIN/MAX in common code.
2021-10-30 10:46:17 +02:00
Christoph Oelckers
cc617d9085
- Backend update from Raze.
...
Mostly warning fixes reported by Clang, plus GLES update.
2021-10-30 09:29:21 +02:00
Christoph Oelckers
19aac25f19
- fixed some imprecisions in font luminosity calculation.
...
This was still going through the palette which could result in off-by-one errors.
2021-10-07 00:13:34 +02:00
Christoph Oelckers
60bf096912
- fixed palette initialization for single lump fonts (FON2 and BMF)
...
The bad increment was due to the palette being a byte array in older versions.
2021-10-06 20:30:29 +02:00
Christoph Oelckers
6da9f00e6e
- allow "INDEXFON" as an alias for "INDEXFONT".
2021-10-03 09:00:24 +02:00
drfrag
c13cd74766
- Fixed broken V_BreakLines.
2021-09-23 15:36:24 +02:00
Christoph Oelckers
109069f718
- removed the unused palette parameter from the V_GetColor family of functions.
2021-08-14 09:57:23 +02:00
Christoph Oelckers
ccf46281df
- fixed line color handling in V_BreakLines.
...
This cannot use the last color found while reading ahead - it must pick the last color of the string part that just got broken out into its own line when starting the next one.
2021-08-11 16:01:40 +02:00
Christoph Oelckers
b6156ac490
- re-fixed the font spacing.
2021-08-10 22:04:32 +02:00
Christoph Oelckers
9cd1e8cf7a
- use proper XMove for sheet fonts.
2021-08-10 21:18:27 +02:00
Christoph Oelckers
61efe76ffd
- fixed: palette index 0 (transparent) was left uninitialized for BMF fonts.
2021-08-10 18:18:44 +02:00
Rachael Alexanderson
eb2646b613
- change previous /0 fix: as suggested here: cb8ae0b560 (commitcomment-53414064)
2021-07-13 06:32:54 -04:00
Rachael Alexanderson
cb8ae0b560
- fix /0 error caused by having a completely black font character. this error was triggered by Return of the Triad.
2021-07-13 00:15:39 -04:00
Christoph Oelckers
e453f97872
- Backend update from Raze.
2021-07-11 09:53:01 +02:00
Christoph Oelckers
b0ccd3a7df
- moved Doom specific font init code out of the backend.
2021-05-31 22:13:40 +02:00
Christoph Oelckers
38520e36c8
- fixed generation of default color range for the option menu font.
2021-05-28 12:11:34 +02:00
Christoph Oelckers
d36fd4f42b
- fixed: GetColorTranslation did not handle translation-less single pic 'fonts' properly.
2021-05-28 10:47:11 +02:00
Christoph Oelckers
36e84a3669
- do not calculate translations for empty fonts.
...
FONTDEFS will create some due to lack of game filtering.
2021-05-27 13:50:02 +02:00
Christoph Oelckers
5f02b92cd0
- font system overhaul.
...
This eliminates nearly all palette dependencies, most importantly font translation will now be done on True Color data, making translations on True Color font less destructive.
2021-05-24 21:28:21 +02:00
Christoph Oelckers
9925cc380e
- backend update from Raze.
2020-11-23 15:45:33 +01:00
Christoph Oelckers
194824f810
- some fixes for the console.
...
* it is now possible to switch back to the main intro loop from the fullscreen console.
* do not distort the background of the fullscreen console. Always draw the console on top of what the main loop currently displays with a translucent black overlay.
* do not use the CONPIC for the fullscreen console as it tends to be more of a distraction than an asset when filling the entire screen.
* cleaned up c_console.cpp and moved several pieces of code unrelated to actual console management out of it.
2020-10-25 09:17:31 +01:00
Christoph Oelckers
bc2b0a0252
- added flag option menu item by Accensus.
2020-10-24 17:49:56 +02:00
Christoph Oelckers
14e94aa6c1
- added localization fallback handling for the BigFont in menu items and captions.
2020-10-17 14:00:29 +02:00
Christoph Oelckers
3a81c07ecf
- moved language switching code to 'common'.
2020-10-16 22:57:27 +02:00
Christoph Oelckers
f9ee465741
- backport of some enhancements for Cyrillic font support for Raze.
...
Now the identical looking characters can be mapped to their Latin counterpart if they do not have their own glyphs.
2020-10-04 08:11:56 +02:00
Christoph Oelckers
6dd6df96e1
- font side support for 'OffsetsNotForFont' flag.
2020-09-27 11:40:03 +02:00
Christoph Oelckers
48b3a60e6d
- fixed: The font init code must check textures, not the file system for existence of required data.
2020-09-26 19:57:53 +02:00
Christoph Oelckers
084c2cc7f5
- fixed broken 'y' detection in Doom-style small fonts.
2020-09-26 18:53:42 +02:00
Christoph Oelckers
b2b1ecc11f
- Single image fonts do not use translations.
2020-05-25 21:16:36 +02:00
Christoph Oelckers
667b2d6bf4
- fixed: V_GetFont must load the translations once the game has been set up.
2020-05-25 19:44:06 +02:00
Christoph Oelckers
3fd4d08004
- fixed startup and font init crashes.
2020-05-04 20:06:54 +02:00
Christoph Oelckers
ddef3f7b98
- made video base code game independent
2020-04-28 22:54:53 +02:00
Christoph Oelckers
ef8e7a4944
- reworked the multipatch texture builder to reuse the FImageTexture objects.
2020-04-19 10:57:55 +02:00
Christoph Oelckers
0a1bd458db
- moved most material flags out of FTexture.
2020-04-19 10:57:54 +02:00
Christoph Oelckers
718949f74d
- moved the texture name to FGameTexture.
2020-04-19 10:57:53 +02:00
Christoph Oelckers
61380fc505
- moved the offsets to FGameTexture.
...
# Conflicts:
# src/common/textures/textures.h
2020-04-19 10:57:53 +02:00
Christoph Oelckers
70ec20c137
- optimization of texture scaling checks.
...
The texture dimension checks can be performed up front when the texture is inserted into the texture manager.
2020-04-19 10:57:51 +02:00
Christoph Oelckers
662fa6e667
- removed the conversion helper code and fixed a few places where FMaterial was only used to access the hardware textures in the FTexture class.
2020-04-19 10:57:49 +02:00
Christoph Oelckers
7bdef7fe9a
- cleaned the texture manager's method interface from FTexture references.
2020-04-19 10:57:49 +02:00
Christoph Oelckers
83817080bb
- more texture cleanup.
...
It is now in a state where FTexture really needs to be separated from FGameTexture.
2020-04-19 10:57:48 +02:00
Christoph Oelckers
9099bc8420
- reworking some lower level texture code.
2020-04-19 10:57:46 +02:00
Christoph Oelckers
9e7094848c
- transitioned the 2D drawer to FGameTexture.
2020-04-19 10:57:45 +02:00
Christoph Oelckers
9a3b663e04
- fixed text size calculations in the status bar.
...
To avoid errors, all spacing calculations have been added to FFont::StringWidth which already performs proper escape filtering.
2020-04-13 12:11:14 +02:00
Christoph Oelckers
1e40b745d5
- added some things from Raze to allow using the same code in both projects.
2020-04-11 20:20:59 +02:00
Christoph Oelckers
3bf7686cfb
- moved v_text.cpp to 'common'.
2020-04-11 20:20:56 +02:00
Christoph Oelckers
1a0ace4f88
- palette related fixes.
2020-04-11 20:20:40 +02:00
Christoph Oelckers
940f1dc9a2
- move font code to 'common'.
...
- fix use of translation slot 0, used for internal translations.
2020-04-11 20:20:40 +02:00