Author: AlbrechtS
Date: 2012-04-05 07:30:19 -0700 (Thu, 05 Apr 2012)
New Revision: 9326
Log:
fix a typo and indenting.


Modified:
   branches/branch-1.3/FL/Fl_Widget.H
   branches/branch-1.3/src/Fl_File_Chooser2.cxx
   branches/branch-1.3/src/Fl_Input_.cxx
   branches/branch-1.3/src/fl_draw.cxx
   branches/branch-1.3/src/fl_plastic.cxx
   branches/branch-1.3/src/fl_set_fonts_win32.cxx

Modified: branches/branch-1.3/FL/Fl_Widget.H
===================================================================
--- branches/branch-1.3/FL/Fl_Widget.H  2012-04-05 05:12:30 UTC (rev 9325)
+++ branches/branch-1.3/FL/Fl_Widget.H  2012-04-05 14:30:19 UTC (rev 9326)
@@ -152,7 +152,7 @@
       See activate(), output(), visible(), changed(), set_visible_focus()
   */
   enum {
-           INACTIVE        = 1<<0,   ///< the widget can't receive focus, and 
is disabled but potentially visible
+        INACTIVE        = 1<<0,   ///< the widget can't receive focus, and is 
disabled but potentially visible
         INVISIBLE       = 1<<1,   ///< the widget is not drawn, but can 
receive a few special events
         OUTPUT          = 1<<2,   ///< for output only
         NOBORDER        = 1<<3,   ///< don't draw a decoration (Fl_Window)
@@ -693,12 +693,11 @@
   unsigned int is_fullscreen() const {return (flags_ & FULLSCREEN);}
 
   /** Returns whether the widget is active.
-      \retval 0 if the widget is inacti
+      \retval 0 if the widget is inactive
       \see active_r(), activate(), deactivate()
    */
   unsigned int active() const {return !(flags_&INACTIVE);}
 
-
   /** Returns whether the widget and all of its parents are active. 
       \retval 0 if this or any of the parent widgets are inactive
       \see active(), activate(), deactivate()

Modified: branches/branch-1.3/src/Fl_File_Chooser2.cxx
===================================================================
--- branches/branch-1.3/src/Fl_File_Chooser2.cxx        2012-04-05 05:12:30 UTC 
(rev 9325)
+++ branches/branch-1.3/src/Fl_File_Chooser2.cxx        2012-04-05 14:30:19 UTC 
(rev 9326)
@@ -951,16 +951,16 @@
     } else if (max_match > min_match && first_line) {
       // Add the matching portion...
       fileName->replace( 
-                 (int) (filename - pathname), 
-                 (int) (filename - pathname + min_match),
-           matchname);
+                       (int) (filename - pathname), 
+                       (int) (filename - pathname + min_match),
+                       matchname);
 
       // Highlight it with the cursor at the end of the selection so
       // s/he can press the right arrow to accept the selection
       // (Tab and End also do this for both cases.)
       fileName->position(
-                 (int) (filename - pathname + max_match),
-             (int) (filename - pathname + min_match));
+                        (int) (filename - pathname + max_match),
+                        (int) (filename - pathname + min_match));
     } else if (max_match == 0) {
       fileList->deselect(0);
       fileList->redraw();

Modified: branches/branch-1.3/src/Fl_Input_.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Input_.cxx       2012-04-05 05:12:30 UTC (rev 
9325)
+++ branches/branch-1.3/src/Fl_Input_.cxx       2012-04-05 14:30:19 UTC (rev 
9326)
@@ -461,7 +461,7 @@
     for (const char* p=value()+j; ;) {
       char buf[MAXBUF];
       p = expand(p, buf);
-         int k = (int) (p-value());
+      int k = (int) (p-value());
       if (k >= i) return k;
       p++;
     }

Modified: branches/branch-1.3/src/fl_draw.cxx
===================================================================
--- branches/branch-1.3/src/fl_draw.cxx 2012-04-05 05:12:30 UTC (rev 9325)
+++ branches/branch-1.3/src/fl_draw.cxx 2012-04-05 14:30:19 UTC (rev 9326)
@@ -303,7 +303,7 @@
       callthis(buf,buflen,xpos,ypos-desc);
 
       if (underline_at && underline_at >= buf && underline_at < (buf + buflen))
-      callthis("_",1,xpos+int(fl_width(buf,(int) 
(underline_at-buf))),ypos-desc);
+       callthis("_",1,xpos+int(fl_width(buf,(int) 
(underline_at-buf))),ypos-desc);
 
       if (!*e || (*e == '@' && e[1] != '@')) break;
       p = e;

Modified: branches/branch-1.3/src/fl_plastic.cxx
===================================================================
--- branches/branch-1.3/src/fl_plastic.cxx      2012-04-05 05:12:30 UTC (rev 
9325)
+++ branches/branch-1.3/src/fl_plastic.cxx      2012-04-05 14:30:19 UTC (rev 
9326)
@@ -145,11 +145,11 @@
 
 
 static void shade_rect(int x, int y, int w, int h, const char *c, Fl_Color bc) 
{
-  uchar                *g = fl_gray_ramp();
-  int          i, j;
+  uchar        *g = fl_gray_ramp();
+  int  i, j;
   int  clen = (int) strlen(c) - 1;
   int  chalf = clen / 2;
-  int          cstep = 1;
+  int  cstep = 1;
 
   if (h < (w * 2)) {
     // Horizontal shading...
@@ -217,8 +217,8 @@
 }
 
 static void shade_round(int x, int y, int w, int h, const char *c, Fl_Color 
bc) {
-  uchar                *g = fl_gray_ramp();
-  int          i;
+  uchar        *g = fl_gray_ramp();
+  int  i;
   int  clen = (int) (strlen(c) - 1);
   int  chalf = clen / 2;
 

Modified: branches/branch-1.3/src/fl_set_fonts_win32.cxx
===================================================================
--- branches/branch-1.3/src/fl_set_fonts_win32.cxx      2012-04-05 05:12:30 UTC 
(rev 9325)
+++ branches/branch-1.3/src/fl_set_fonts_win32.cxx      2012-04-05 14:30:19 UTC 
(rev 9326)
@@ -69,7 +69,7 @@
   dstlen = fl_utf8fromwc(n, dstlen, (xchar*)lpelf->lfFaceName, (unsigned) l); 
// convert the string
   n[dstlen] = 0;
   for (int i=0; i<FL_FREE_FONT; i++) // skip if one of our built-in fonts
-         if (!strcmp(Fl::get_font_name((Fl_Font)i),n)) {free(n);return 1;}
+    if (!strcmp(Fl::get_font_name((Fl_Font)i),n)) {free(n);return 1;}
   char buffer[LF_FACESIZE + 1];
   strcpy(buffer+1, n);
   buffer[0] = ' '; Fl::set_font((Fl_Font)(fl_free_font++), strdup(buffer));
@@ -86,7 +86,7 @@
   if (fl_free_font == FL_FREE_FONT) {// if not already been called
     if (!fl_gc) fl_GetDC(0);
 
-      EnumFontFamiliesW(fl_gc, NULL, (FONTENUMPROCW)enumcbw, xstarname != 0);
+    EnumFontFamiliesW(fl_gc, NULL, (FONTENUMPROCW)enumcbw, xstarname != 0);
 
   }
   return (Fl_Font)fl_free_font;
@@ -145,14 +145,14 @@
 //  int l = fl_utf_nb_char((unsigned char*)s->name+1, strlen(s->name+1));
 //  unsigned short *b = (unsigned short*) malloc((l + 1) * sizeof(short));
 //  fl_utf2unicode((unsigned char*)s->name+1, l, (xchar*)b);
-       const char *nm = (const char*)s->name+1;
-       size_t len = strlen(s->name+1);
-    unsigned l = fl_utf8toUtf16(nm, (unsigned) len, NULL, 0); // Pass NULL to 
query length required
-    unsigned short *b = (unsigned short*) malloc((l + 1) * sizeof(short));
-    l = fl_utf8toUtf16(nm, (unsigned) len, b, (l+1)); // Now do the conversion
-    b[l] = 0;
-    EnumFontFamiliesW(fl_gc, (WCHAR*)b, (FONTENUMPROCW)EnumSizeCbW, 0);
-       free(b);
+  const char *nm = (const char*)s->name+1;
+  size_t len = strlen(s->name+1);
+  unsigned l = fl_utf8toUtf16(nm, (unsigned) len, NULL, 0); // Pass NULL to 
query length required
+  unsigned short *b = (unsigned short*) malloc((l + 1) * sizeof(short));
+  l = fl_utf8toUtf16(nm, (unsigned) len, b, (l+1)); // Now do the conversion
+  b[l] = 0;
+  EnumFontFamiliesW(fl_gc, (WCHAR*)b, (FONTENUMPROCW)EnumSizeCbW, 0);
+  free(b);
 
   sizep = sizes;
   return nbSize;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to