]> Dogcows Code - chaz/openbox/blobdiff - obrender/render.c
Merge branch 'm4/master'
[chaz/openbox] / obrender / render.c
index fb59e216928f4d7000f3e05a96ec178d810bc23a..fe9a2a80dd27669b8888b226ab0b62655e52b23a 100644 (file)
@@ -231,6 +231,8 @@ void RrAppearanceClearTextures(RrAppearance *a)
     memset(a->texture, 0, a->textures * sizeof(RrTexture));
 }
 
+/* deep copy of orig, means reset ref to 1 on copy
+ * and copy each thing memwise. */
 RrAppearance *RrAppearanceCopy(RrAppearance *orig)
 {
     RrSurface *spo, *spc;
@@ -316,6 +318,7 @@ RrAppearance *RrAppearanceCopy(RrAppearance *orig)
     return copy;
 }
 
+/* now decrements ref counter, and frees only if ref <= 0 */
 void RrAppearanceFree(RrAppearance *a)
 {
     if (a) {
This page took 0.02012 seconds and 4 git commands to generate.