mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +00:00
Merge pull request #1 from alexey-lysiuk/non_msvc
Fixed compilation with Clang
This commit is contained in:
commit
e2bcf5f4d7
2 changed files with 3 additions and 3 deletions
|
@ -5076,7 +5076,7 @@ void R_SetColorMapLight(FColormap *base_colormap, float light, int shade)
|
||||||
dc_shade_constants.fade_green = dc_fcolormap->Fade.g;
|
dc_shade_constants.fade_green = dc_fcolormap->Fade.g;
|
||||||
dc_shade_constants.fade_blue = dc_fcolormap->Fade.b;
|
dc_shade_constants.fade_blue = dc_fcolormap->Fade.b;
|
||||||
dc_shade_constants.fade_alpha = dc_fcolormap->Fade.a;
|
dc_shade_constants.fade_alpha = dc_fcolormap->Fade.a;
|
||||||
dc_shade_constants.desaturate = MIN(std::abs(dc_fcolormap->Desaturate), 255) * 255 / 256;
|
dc_shade_constants.desaturate = MIN(abs(dc_fcolormap->Desaturate), 255) * 255 / 256;
|
||||||
dc_shade_constants.simple_shade = (dc_fcolormap->Color.d == 0x00ffffff && dc_fcolormap->Fade.d == 0x00000000 && dc_fcolormap->Desaturate == 0);
|
dc_shade_constants.simple_shade = (dc_fcolormap->Color.d == 0x00ffffff && dc_fcolormap->Fade.d == 0x00000000 && dc_fcolormap->Desaturate == 0);
|
||||||
if (r_swtruecolor)
|
if (r_swtruecolor)
|
||||||
{
|
{
|
||||||
|
@ -5101,7 +5101,7 @@ void R_SetDSColorMapLight(FColormap *base_colormap, float light, int shade)
|
||||||
ds_shade_constants.fade_green = ds_fcolormap->Fade.g;
|
ds_shade_constants.fade_green = ds_fcolormap->Fade.g;
|
||||||
ds_shade_constants.fade_blue = ds_fcolormap->Fade.b;
|
ds_shade_constants.fade_blue = ds_fcolormap->Fade.b;
|
||||||
ds_shade_constants.fade_alpha = ds_fcolormap->Fade.a;
|
ds_shade_constants.fade_alpha = ds_fcolormap->Fade.a;
|
||||||
ds_shade_constants.desaturate = MIN(std::abs(ds_fcolormap->Desaturate), 255) * 255 / 256;
|
ds_shade_constants.desaturate = MIN(abs(ds_fcolormap->Desaturate), 255) * 255 / 256;
|
||||||
ds_shade_constants.simple_shade = (ds_fcolormap->Color.d == 0x00ffffff && ds_fcolormap->Fade.d == 0x00000000 && ds_fcolormap->Desaturate == 0);
|
ds_shade_constants.simple_shade = (ds_fcolormap->Color.d == 0x00ffffff && ds_fcolormap->Fade.d == 0x00000000 && ds_fcolormap->Desaturate == 0);
|
||||||
if (r_swtruecolor)
|
if (r_swtruecolor)
|
||||||
{
|
{
|
||||||
|
|
|
@ -115,7 +115,7 @@ inline uint32_t calc_light_multiplier(dsfixed_t light)
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#define FORCEINLINE __forceinline
|
#define FORCEINLINE __forceinline
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
#define FORCEINLINE __attribute__((always_inline))
|
#define FORCEINLINE __attribute__((always_inline)) inline
|
||||||
#else
|
#else
|
||||||
#define FORCEINLINE inline
|
#define FORCEINLINE inline
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue