Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sliders that go negative have unreachable values #16

Closed
unpacklo opened this issue Aug 13, 2014 · 4 comments
Closed

Sliders that go negative have unreachable values #16

unpacklo opened this issue Aug 13, 2014 · 4 comments

Comments

@unpacklo
Copy link

This can be observed in the sample application.

It seems like if you split the slider into 1/4ths, the 3rd quarter is the section that is skipped.

@ocornut
Copy link
Owner

ocornut commented Aug 13, 2014

Which OS/platform are you using? A Macosx/64 user reported this to me directly but I couldn't repro myself.

On 2014/08/13, at 20:06, Dale Kim notifications@github.com wrote:

This can be observed in the sample application.

It seems like if you split the slider into 1/4ths, the 3rd quarter is the section that is skipped.


Reply to this email directly or view it on GitHub.

@unpacklo
Copy link
Author

I've seen this both on my MacBook Pro and primary desktop system which
runs Linux most of the time.

Mac is on OSX 10.9.4 and I have my own gcc toolchain which is on version
4.8.2.

Linux is running Linux Mint 17:

dalekim1@lispy:/home/dalekim1> uname -a
Linux lispy 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC
2014 x86_64 x86_64 x86_64 GNU/Linux

dalekim1@lispy:/home/dalekim1> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.8.3/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-languages=c,c++,objc,obj-c++
--enable-gold --disable-multilib
Thread model: posix
gcc version 4.8.3 (GCC)

Dale Kim
Programmer at Stellar Jockeys

On 08/13/2014 02:12 PM, omar wrote:

Which OS/platform are you using? A Macosx/64 user reported this to me
directly but I couldn't repro myself.

On 2014/08/13, at 20:06, Dale Kim notifications@github.com wrote:

This can be observed in the sample application.

It seems like if you split the slider into 1/4ths, the 3rd quarter
is the section that is skipped.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#16 (comment).

@ocornut
Copy link
Owner

ocornut commented Aug 13, 2014

OK I am on my Mac now and it repro!

@ocornut
Copy link
Owner

ocornut commented Aug 13, 2014

Fixed!
I was calling abs() which for some reason resolved to abs(float) on the architectures I was using (Windows & PS4) but abs(int) on Mac/Linux. It was also breaking the RGB<>HSV conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants