]> Shamusworld >> Repos - apple2/blobdiff - src/gui/draggablewindow.cpp
Set eol-style to native to keep things sane.
[apple2] / src / gui / draggablewindow.cpp
index 45635bff2dc77f4e79a70800a2459159ee64caa8..860e35d4fc2e8bf5f21443d2601f123608065377 100755 (executable)
@@ -32,8 +32,9 @@
 #define MASK_A 0xFF000000
 #endif
 
+using namespace std;                                                           // For STL stuff
+
 #define BACKGROUND_IMG_TEST
-//#define USE_COVERAGE_LISTS
 
 //
 // DraggableWindow class implementation
@@ -141,16 +142,6 @@ void DraggableWindow::HandleMouseButton(uint32 x, uint32 y, bool mouseDown)
 
 void DraggableWindow::Draw(void)
 {
-#ifdef USE_COVERAGE_LISTS
-       // These are *always* top level and parentless, so no need to traverse up through
-       // the parent chain...
-       for(std::list<SDL_Rect>::iterator i=coverList.begin(); i!=coverList.end(); i++)
-               SDL_FillRect(screen, &(*i), bgColor);
-
-       // Handle the items this window contains...
-       for(uint32 i=0; i<list.size(); i++)
-               list[i]->Draw();
-#else
        // These are *always* top level and parentless, so no need to traverse up through
        // the parent chain...
 //Perhaps we can make these parentable, put the parent traversal in the base class?
@@ -176,7 +167,6 @@ void DraggableWindow::Draw(void)
        // Handle the items this window contains...
        for(uint32 i=0; i<list.size(); i++)
                list[i]->Draw();
-#endif
 
 //Prolly don't need this since the close button will do this for us...
        needToRefreshScreen = true;