mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-09 04:30:09 +00:00
Added a class Graphics::ScopedSaveState. Fixed a window dragging problem in win32, some VC6 compile errors, and made the jucer makefile builder use the target binary folder.
This commit is contained in:
parent
76b128d90e
commit
a37d5041dd
21 changed files with 167 additions and 125 deletions
|
|
@ -244,10 +244,12 @@ public:
|
|||
const int rx = roundToInt (dx), ry = roundToInt (dy);
|
||||
const int rw = roundToInt (dw), rh = roundToInt (dh);
|
||||
|
||||
g.saveState();
|
||||
g.excludeClipRegion (Rectangle<int> (rx, ry, rw, rh));
|
||||
g.fillAll (Colours::black);
|
||||
g.restoreState();
|
||||
{
|
||||
Graphics::ScopedSaveState ss (g);
|
||||
|
||||
g.excludeClipRegion (Rectangle<int> (rx, ry, rw, rh));
|
||||
g.fillAll (Colours::black);
|
||||
}
|
||||
|
||||
g.drawImage (activeImage, rx, ry, rw, rh, 0, 0, width, height);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue