You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested on 1.53 WIP (branch 2017 drag&drop latest closed) and 1.62 (in release download section)
Back-ends: 1.53 WIP (my own custom winapi+opengl 3) / 1.62 (SDL2+GL3 standard no modifications)
OS: Linux Mint Tara x64 / Windows 7 Ultimate SP1
Compiler: GCC / MingW (from codeblocks installer)
My Issue/Question: There is a bug in drag and drop if someone uses only black and white color buttons, if the color button is black the RGB will be divided by 2 each time used, in white color cases I have no idea how the color is changing...
Any help to make a temporally fix will be also appreciated...
Standalone, minimal, complete and verifiable example:
Nice find! This has been in since the initial implementation in #346.
The problem lies in the code which does:
// Try to cancel hue wrap (after ColorEdit), if any
This code is useful in other situations. With:
without:
Another way to reproduce a similar bug is to have a RGB(0,0,255) value and just input 0 into the B box:
So my guess is that we could avoid running the hue wrap fix up when inputting/dropping an absolute value, but keep it when dragging. EDIT It's not a super trivial change because we are relying on the value_changed output from ColorEdit4() which doesn't allow us to distinguish between a dragging edit and a text input/drop.
I don't actually properly grok that HSV logic so I may be wrong.
ocornut
changed the title
[Bug] Drag and drop issues
ColorEdit/Picker: bug on drag and drop and text input due to HSV-wrapping code
Aug 29, 2018
Version/Branch of Dear ImGui:
Tested on 1.53 WIP (branch 2017 drag&drop latest closed) and 1.62 (in release download section)
Back-ends: 1.53 WIP (my own custom winapi+opengl 3) / 1.62 (SDL2+GL3 standard no modifications)
OS: Linux Mint Tara x64 / Windows 7 Ultimate SP1
Compiler: GCC / MingW (from codeblocks installer)
My Issue/Question: There is a bug in drag and drop if someone uses only black and white color buttons, if the color button is black the RGB will be divided by 2 each time used, in white color cases I have no idea how the color is changing...
Any help to make a temporally fix will be also appreciated...
Standalone, minimal, complete and verifiable example:
Screenshots/Video
B#
The text was updated successfully, but these errors were encountered: