gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] glmosaictext ./Makefile include/GLMosaicText.hxx


From: Tuomas J. Lukka
Subject: [Gzz-commits] glmosaictext ./Makefile include/GLMosaicText.hxx
Date: Mon, 17 Mar 2003 07:32:38 -0500

CVSROOT:        /cvsroot/glmosaictext
Module name:    glmosaictext
Changes by:     Tuomas J. Lukka <address@hidden>        03/03/17 07:32:38

Modified files:
        .              : Makefile 
        include        : GLMosaicText.hxx 

Log message:
        Debug to ifs

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/glmosaictext/glmosaictext/Makefile.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/glmosaictext/glmosaictext/include/GLMosaicText.hxx.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: glmosaictext/Makefile
diff -u glmosaictext/Makefile:1.1 glmosaictext/Makefile:1.2
--- glmosaictext/Makefile:1.1   Sun Mar 16 02:18:50 2003
+++ glmosaictext/Makefile       Mon Mar 17 07:32:38 2003
@@ -1,6 +1,6 @@
 include rules.mk
 
-SUBDIRS = ctest src
+SUBDIRS = src
 
 .PHONY: all subdirs $(SUBDIRS)
 
Index: glmosaictext/include/GLMosaicText.hxx
diff -u glmosaictext/include/GLMosaicText.hxx:1.2 
glmosaictext/include/GLMosaicText.hxx:1.3
--- glmosaictext/include/GLMosaicText.hxx:1.2   Sun Mar 16 02:29:55 2003
+++ glmosaictext/include/GLMosaicText.hxx       Mon Mar 17 07:32:38 2003
@@ -238,11 +238,11 @@
                    if(g.extents.width == 0 || g.extents.height == 0)
                        continue;
                    MosaicTile tile = mosaic.alloc(g.extents.iwidth, 
g.extents.iheight);
-                   DBG(dbg_glyphdetails) << "MTile: "<<tile<<"\n";
+                   if(dbg_glyphdetails) std::cout << "MTile: "<<tile<<"\n";
                    tile.loadImage(g.raster);
                    glyphs[i] = QuadGlyph(g, tile.getRect());
                } catch(NoSuchGlyph &) {
-                   DBG(dbg_glyphdetails) << "Caught nosuchglyph\n";
+                   if(dbg_glyphdetails) std::cout << "Caught nosuchglyph\n";
                    continue;
                }
            }
@@ -252,7 +252,7 @@
                glyphs[32].glyph.extents.xadvance = 
glyphs['r'].glyph.extents.xadvance;
                glyphs[32].rect.tex = glyphs['r'].rect.tex;
            }
-           DBG(dbg_glyphdetails) << "Glyphwidth: 32 = 
"<<glyphs[32].glyph.extents.xadvance<<"\n";
+           if(dbg_glyphdetails) std::cout << "Glyphwidth: 32 = 
"<<glyphs[32].glyph.extents.xadvance<<"\n";
            mosaic.prepare();
        }
        /** Get a single glyph.
@@ -268,7 +268,7 @@
         */
        float getGlyphWidth(Char c) {
            if((unsigned)c >= glyphs.size()) return 0;
-           DBG(dbg_glyphdetails) << "Glyphwidth: "<<((int)c)<<" 
"<<glyphs[c].glyph.extents.xadvance<<" valid:"<<glyphs[c].valid()<< "\n";
+           if(dbg_glyphdetails) std::cout << "Glyphwidth: "<<((int)c)<<" 
"<<glyphs[c].glyph.extents.xadvance<<" valid:"<<glyphs[c].valid()<< "\n";
            if(!glyphs[c].valid() && c != ' ') return 0;
            return glyphs[c].glyph.extents.xadvance;
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]