ExtFloodFill anwenden



  • Ich habe eine DirectDraw Anwendung und möchte dort ein komplexes Gebilde ausfüllen

    //---------------------------------------------------------------------------
    void DirectDrawClass::FloodFill(int x, int y, COLORREF FillColor, int filltype, LPDIRECTDRAWSURFACE7 lpDDSurf)
    {
    	if (filltype==0)
    		filltype = FLOODFILLBORDER;
    	else
    		filltype = FLOODFILLSURFACE;
    
        HDC hDC;
    
        if(FAILED(lpDDSurf->GetDC(&hDC)))
        {
            Error("DC(Polygon) ist nicht verfügbar");
        }
    
    	ExtFloodFill(hDC,x,y,FillColor,filltype);
    
    	lpDDSurf->ReleaseDC(hDC);
    }
    //---------------------------------------------------------------------------
    
    DDraw.FloodFill(301,211,RGB(255,0,0),1,DDraw.GetBuffer());
    

    Bei dem Code tut sich aber garnichts. 😕
    Er müsste doch wenigstens irgendetwas ausmalen. Was mache ich denn falsch?



  • Denkfehler, habs...


Anmelden zum Antworten