]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/utilsgui.cpp
Remove the busy-wait loops in wxAMMediaBackend::Play as they didn't
[wxWidgets.git] / src / os2 / utilsgui.cpp
index 8ccbed4f91bfce2e5706c45ac0d526c927598f6d..5b7e06cf347edf692d6ecf98c3bfc50a6cfdfd49 100644 (file)
@@ -428,8 +428,10 @@ void wxDisplaySize(
         ::DevCloseDC(hdcScreen);
         ::WinReleasePS(hpsScreen);
     }
         ::DevCloseDC(hdcScreen);
         ::WinReleasePS(hpsScreen);
     }
-    *pWidth = (int)lWidth;
-    *pHeight = (int)lHeight;
+    if (pWidth)
+        *pWidth = (int)lWidth;
+    if (pHeight)
+        *pHeight = (int)lHeight;
 }
 
 void wxDisplaySizeMM(
 }
 
 void wxDisplaySizeMM(
@@ -939,7 +941,7 @@ wxBitmap wxDisableBitmap(
     int                             j;
 
     //
     int                             j;
 
     //
-    // Bitmap must be ina double-word alligned address so we may
+    // Bitmap must be in a double-word aligned address so we may
     // have some padding to worry about
     //
     if (nLineBoundary > 0)
     // have some padding to worry about
     //
     if (nLineBoundary > 0)