mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +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:
parent
ec021e9e67
commit
2df522076b
29 changed files with 542 additions and 347 deletions
|
|
@ -3160,7 +3160,8 @@ public:
|
|||
GLXContext sharedContext)
|
||||
: renderContext (0),
|
||||
embeddedWindow (0),
|
||||
pixelFormat (pixelFormat_)
|
||||
pixelFormat (pixelFormat_),
|
||||
swapInterval (0)
|
||||
{
|
||||
jassert (component != 0);
|
||||
LinuxComponentPeer* const peer = dynamic_cast <LinuxComponentPeer*> (component->getTopLevelComponent()->getPeer());
|
||||
|
|
@ -3288,14 +3289,21 @@ public:
|
|||
|
||||
bool setSwapInterval (const int numFramesPerSwap)
|
||||
{
|
||||
// xxx needs doing..
|
||||
static PFNGLXSWAPINTERVALSGIPROC GLXSwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC) glXGetProcAddress ((const GLubyte*) "glXSwapIntervalSGI");
|
||||
|
||||
if (GLXSwapIntervalSGI != 0)
|
||||
{
|
||||
swapInterval = numFramesPerSwap;
|
||||
GLXSwapIntervalSGI (numFramesPerSwap);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
int getSwapInterval() const
|
||||
{
|
||||
// xxx needs doing..
|
||||
return 0;
|
||||
return swapInterval;
|
||||
}
|
||||
|
||||
void repaint()
|
||||
|
|
@ -3310,6 +3318,7 @@ public:
|
|||
private:
|
||||
Window embeddedWindow;
|
||||
OpenGLPixelFormat pixelFormat;
|
||||
int swapInterval;
|
||||
|
||||
//==============================================================================
|
||||
WindowedGLContext (const WindowedGLContext&);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue