mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-30 02:50:05 +00:00
Workarounds for VC6.
This commit is contained in:
parent
cc607e0a38
commit
b952084419
44 changed files with 851 additions and 686 deletions
|
|
@ -414,7 +414,7 @@ private:
|
|||
};
|
||||
|
||||
//==============================================================================
|
||||
namespace
|
||||
namespace RenderingHelpers
|
||||
{
|
||||
forcedinline int safeModulo (int n, const int divisor) throw()
|
||||
{
|
||||
|
|
@ -436,8 +436,8 @@ public:
|
|||
: destData (destData_),
|
||||
srcData (srcData_),
|
||||
extraAlpha (extraAlpha_ + 1),
|
||||
xOffset (repeatPattern ? safeModulo (x, srcData_.width) - srcData_.width : x),
|
||||
yOffset (repeatPattern ? safeModulo (y, srcData_.height) - srcData_.height : y)
|
||||
xOffset (repeatPattern ? RenderingHelpers::safeModulo (x, srcData_.width) - srcData_.width : x),
|
||||
yOffset (repeatPattern ? RenderingHelpers::safeModulo (y, srcData_.height) - srcData_.height : y)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -680,8 +680,8 @@ private:
|
|||
|
||||
if (repeatPattern)
|
||||
{
|
||||
loResX = safeModulo (loResX, srcData.width);
|
||||
loResY = safeModulo (loResY, srcData.height);
|
||||
loResX = RenderingHelpers::safeModulo (loResX, srcData.width);
|
||||
loResY = RenderingHelpers::safeModulo (loResY, srcData.height);
|
||||
}
|
||||
|
||||
if (betterQuality)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue