]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_image.i
demo tweaks
[wxWidgets.git] / wxPython / src / _image.i
index cdf9ecebb862aecadae80195fc8fca3328cc59f4..1655963fc48b909095f1a2907a028fc729d74bf7 100644 (file)
@@ -204,7 +204,7 @@ public:
             unsigned char* buffer;
             int size;
 
             unsigned char* buffer;
             int size;
 
-            wxPyBeginBlockThreads();
+            bool blocked = wxPyBeginBlockThreads();
             if (!PyArg_Parse(data, "t#", &buffer, &size))
                 goto done;
 
             if (!PyArg_Parse(data, "t#", &buffer, &size))
                 goto done;
 
@@ -214,7 +214,7 @@ public:
             }
             self->SetData(buffer);
         done:
             }
             self->SetData(buffer);
         done:
-            wxPyEndBlockThreads();
+            wxPyEndBlockThreads(blocked);
         }
 
 
         }
 
 
@@ -258,7 +258,7 @@ public:
             unsigned char* buffer;
             int size;
 
             unsigned char* buffer;
             int size;
 
-            wxPyBeginBlockThreads();
+            bool blocked = wxPyBeginBlockThreads();
             if (!PyArg_Parse(data, "t#", &buffer, &size))
                 goto done;
 
             if (!PyArg_Parse(data, "t#", &buffer, &size))
                 goto done;
 
@@ -268,7 +268,7 @@ public:
             }
             self->SetAlpha(buffer);
         done:
             }
             self->SetAlpha(buffer);
         done:
-            wxPyEndBlockThreads();
+            wxPyEndBlockThreads(blocked);
         }
     }
 
         }
     }