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

Formatting

This commit is contained in:
Tom Poole 2023-09-29 16:41:53 +01:00
parent ff0cb4ad5b
commit 4153d59e39
279 changed files with 1281 additions and 1281 deletions

View file

@ -125,10 +125,10 @@ public:
return;
// create a native surface view
surfaceView = GlobalRef (LocalRef<jobject>(env->NewObject (JuceOpenGLViewSurface,
JuceOpenGLViewSurface.constructor,
getAppContext().get(),
reinterpret_cast<jlong> (this))));
surfaceView = GlobalRef (LocalRef<jobject> (env->NewObject (JuceOpenGLViewSurface,
JuceOpenGLViewSurface.constructor,
getAppContext().get(),
reinterpret_cast<jlong> (this))));
if (surfaceView.get() == nullptr)
return;

View file

@ -162,7 +162,7 @@ private:
{
for (int i = images.size(); --i >= 0;)
{
auto& ci = *images.getUnchecked(i);
auto& ci = *images.getUnchecked (i);
if (ci.pixelData == im)
{
@ -1214,7 +1214,7 @@ struct StateHelpers
for (int i = 0; i < numTexturesToCache - 2; ++i)
{
auto* t = textures.getUnchecked(i);
auto* t = textures.getUnchecked (i);
if (t->getWidth() == w && t->getHeight() == h)
return textures.removeAndReturn (i);

View file

@ -60,7 +60,7 @@ void OpenGLShaderProgram::release() noexcept
double OpenGLShaderProgram::getLanguageVersion()
{
return String::fromUTF8 ((const char*) glGetString (GL_SHADING_LANGUAGE_VERSION))
.retainCharacters("1234567890.").getDoubleValue();
.retainCharacters ("1234567890.").getDoubleValue();
}
bool OpenGLShaderProgram::addShader (const String& code, GLenum type)