1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Improvements to mouse wheel response on the mac, allowing much better smooth-scrolling, and also mouse-wheel improvements in the Viewport class to make it respond more fluidly. Also misc small fixes and tweaks.

This commit is contained in:
Julian Storer 2010-06-15 19:57:55 +01:00
parent ec021e9e67
commit 2df522076b
29 changed files with 542 additions and 347 deletions

View file

@ -889,9 +889,8 @@ private:
void setStartOfLine (float x, float y, const int numPixels) throw()
{
float x1 = x, y1 = y;
inverseTransform.transformPoint (x1, y1);
x += numPixels;
inverseTransform.transformPoint (x, y);
inverseTransform.transformPoints (x1, y1, x, y);
xBresenham.set ((int) (x1 * 256.0f), (int) (x * 256.0f), numPixels);
yBresenham.set ((int) (y1 * 256.0f), (int) (y * 256.0f), numPixels);