]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Minor cosmetic fixes
authorMikko Rasa <tdb@tdb.fi>
Sun, 13 Dec 2015 15:47:20 +0000 (17:47 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 13 Dec 2015 15:53:46 +0000 (17:53 +0200)
source/main.c

index 970774d2eac52a7ff5350891f8442619287eb265..a8a17fdedaa3ad7f6003778379270d1c8b438c06 100644 (file)
@@ -111,7 +111,7 @@ static const char *fshader_src =
        "out vec4 frag_color;\n"
        "void main()\n"
        "{\n"
-       "       frag_color = texture(image, texcoord);\n"
+       "  frag_color = texture(image, texcoord);\n"
        "}\n";
 
 static const char *masked_fshader_src =
@@ -1199,7 +1199,9 @@ void refresh_screen(Compositor *compositor, CompositedScreen *screen)
        glBindVertexArray(screen->window_vertex_array);
        for(i=0; i<screen->nwindows; ++i)
        {
-               CompositedWindow *window = &screen->windows[i];
+               CompositedWindow *window;
+
+               window = &screen->windows[i];
                if(window->map_state!=IsViewable)
                        continue;