release the clipper only it has been created, that is in windowed mode
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 10 Mar 2009 17:55:43 +0000 (17:55 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 10 Mar 2009 17:55:43 +0000 (17:55 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@39434 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/software_ddraw/evas_ddraw_main.cpp

index 603b495..bf99b9c 100644 (file)
@@ -127,7 +127,7 @@ evas_software_ddraw_init (HWND    window,
  release_surface_primary:
    buf->priv.dd.surface_primary->Release();
  release_clipper:
-   if (buf->priv.dd.fullscreen)
+   if (!buf->priv.dd.fullscreen)
      buf->priv.dd.clipper->Release();
  release_object:
    buf->priv.dd.object->Release();
@@ -146,7 +146,7 @@ evas_software_ddraw_shutdown(Outbuf *buf)
        buf->priv.dd.surface_back->Release();
    if (buf->priv.dd.surface_primary)
      buf->priv.dd.surface_primary->Release();
-   if (buf->priv.dd.fullscreen)
+   if (!buf->priv.dd.fullscreen)
      if (buf->priv.dd.clipper)
        buf->priv.dd.clipper->Release();
    if (buf->priv.dd.object)