mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Cleaned up a few VC warnings.
This commit is contained in:
parent
f6ce67ed4a
commit
a51a4952e4
3 changed files with 7 additions and 7 deletions
|
|
@ -118,7 +118,7 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
void clearRegionInFrameBuffer (const RectangleList& list, const double scale)
|
||||
void clearRegionInFrameBuffer (const RectangleList& list, const float scale)
|
||||
{
|
||||
glClearColor (0, 0, 0, 0);
|
||||
glEnable (GL_SCISSOR_TEST);
|
||||
|
|
@ -129,7 +129,7 @@ public:
|
|||
|
||||
for (const Rectangle<int>* i = list.begin(), * const e = list.end(); i != e; ++i)
|
||||
{
|
||||
const Rectangle<int> r (*i * scale);
|
||||
const Rectangle<int> r ((i->toFloat() * scale).getSmallestIntegerContainer());
|
||||
glScissor (r.getX(), imageH - r.getBottom(), r.getWidth(), r.getHeight());
|
||||
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
|
||||
}
|
||||
|
|
@ -214,7 +214,7 @@ public:
|
|||
|
||||
if (! invalid.isEmpty())
|
||||
{
|
||||
clearRegionInFrameBuffer (invalid, scale);
|
||||
clearRegionInFrameBuffer (invalid, (float) scale);
|
||||
|
||||
{
|
||||
ScopedPointer<LowLevelGraphicsContext> g (createOpenGLGraphicsContext (context, cachedImageFrameBuffer));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue