mirror of
https://github.com/ocornut/imgui.git
synced 2026-10-29 07:54:40 +00:00
Parallel draw->AddLine() for fill area without ImDrawFlags_StrokeLegacy alters colour #9585
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#9585
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
1.93.0
Back-ends:
imgui_impl_SDL3
Compiler, OS:
Ubuntu 26, g++
Full config/build information:
No response
Details:
After migrating to ImGui 1.93.0 my line-scan (odd/even) polygon fill algorithm generated notably paler fills.
If I draw the lines with;
the colour reverts back to what is expected; so I'm presuming that the AA/blending/etc is creating a fringe around the line which is overlapping and causing the fill to seem faded.
*NOTE: I don't believe this to be a bug as such, it's a limitation of how I am using the AddLine() call.
( yes, I'm aware there's other general/concave polygon fill algorithms but I use the linescan one because of certain complexities including holes )
Demonstrating the proper colour, using the Legacy flag

Without the legacy flag
