mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
Fixed brightness preview when changing sector brightnesses in Brightness Mode
This commit is contained in:
parent
a8322b7d45
commit
27d30072fb
1 changed files with 2 additions and 4 deletions
|
@ -68,9 +68,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Highlighted item
|
||||
private Sector highlighted;
|
||||
|
||||
// Interface
|
||||
private bool editpressed;
|
||||
|
||||
// Labels
|
||||
private Dictionary<Sector, TextLabel[]> labels;
|
||||
|
||||
|
@ -159,7 +156,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
foreach(Sector s in orderedselection)
|
||||
{
|
||||
// We use the overlay to dim the brightness of the sectors
|
||||
PixelColor brightnesscolor = new PixelColor((byte)(255 - s.Brightness), 0, 0, 0);
|
||||
PixelColor c = PixelColor.FromInt(General.Map.Renderer2D.CalculateBrightness(s.Brightness));
|
||||
PixelColor brightnesscolor = new PixelColor((byte)(255 - c.r), 0, 0, 0);
|
||||
int brightnessint = brightnesscolor.ToInt();
|
||||
|
||||
// Render the geometry
|
||||
|
|
Loading…
Reference in a new issue