Issue #181 resolved

Restore compatibility with msvc

cgohlke
created an issue
diff -r 2e27cc842430 src/_freetype.c
--- a/src/_freetype.c   Sun Oct 20 18:59:49 2013 -0700
+++ b/src/_freetype.c   Tue Oct 22 19:45:04 2013 -0700
@@ -1442,14 +1442,14 @@

     FontRenderMode render;
     PyObject *list = 0;
+    FreeTypeInstance *ft;

     /* arguments */
     PyObject *textobj;
     PGFT_String *text;
-    Scale_t face_size = FACE_SIZE_NONE;;
+    Scale_t face_size = FACE_SIZE_NONE;

     /* grab freetype */
-    FreeTypeInstance *ft;
     ASSERT_GRAB_FREETYPE(ft, 0);

     /* parse args */
@@ -1515,7 +1515,7 @@
 static PyObject *
 _ftfont_getsizeddescender(PgFontObject *self, PyObject *args)
 {
-    Scale_t face_size = FACE_SIZE_NONE;;
+    Scale_t face_size = FACE_SIZE_NONE;
     long value;

     FreeTypeInstance *ft;
@@ -1545,7 +1545,7 @@
 static PyObject *
 _ftfont_getsizedheight(PgFontObject *self, PyObject *args)
 {
-    Scale_t face_size = FACE_SIZE_NONE;;
+    Scale_t face_size = FACE_SIZE_NONE;
     long value;

     FreeTypeInstance *ft;
@@ -1575,7 +1575,7 @@
 static PyObject *
 _ftfont_getsizedglyphheight(PgFontObject *self, PyObject *args)
 {
-    Scale_t face_size = FACE_SIZE_NONE;;
+    Scale_t face_size = FACE_SIZE_NONE;
     long value;

     FreeTypeInstance *ft;
@@ -1653,7 +1653,7 @@
     PGFT_String *text;
     int style = FT_STYLE_DEFAULT;
     Angle_t rotation = self->rotation;
-    Scale_t face_size = FACE_SIZE_NONE;;
+    Scale_t face_size = FACE_SIZE_NONE;
     int invert = 0;

     /* output arguments */
@@ -1721,7 +1721,7 @@
     int ypos = 0;
     int style = FT_STYLE_DEFAULT;
     Angle_t rotation = self->rotation;
-    Scale_t face_size = FACE_SIZE_NONE;;
+    Scale_t face_size = FACE_SIZE_NONE;
     int invert = 0;

     /* output arguments */
@@ -1791,7 +1791,7 @@
     /* input arguments */
     PyObject *textobj = 0;
     PGFT_String *text;
-    Scale_t face_size = FACE_SIZE_NONE;;
+    Scale_t face_size = FACE_SIZE_NONE;
     PyObject *fg_color_obj = 0;
     PyObject *bg_color_obj = 0;
     Angle_t rotation = self->rotation;
@@ -1892,7 +1892,7 @@
     PyObject *surface_obj = 0;
     PyObject *textobj = 0;
     PGFT_String *text;
-    Scale_t face_size = FACE_SIZE_NONE;;
+    Scale_t face_size = FACE_SIZE_NONE;
     PyObject *dest = 0;
     int xpos = 0;
     int ypos = 0;

Comments (6)

  1. Log in to comment