Przeglądaj źródła

SFML: Graphics::fill done

Eiyeron Fulmincendii 10 lat temu
rodzic
commit
9ad7b97119
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      platform/sfml/Graphics.cpp

+ 1 - 1
platform/sfml/Graphics.cpp

@@ -60,7 +60,7 @@ void GRAPHICS::put_sprite(const Texture &sheet, int x, int y,
 
 void GRAPHICS::fill(const WalrusRPG::Graphics::Pixel &color)
 {
-    UNUSED(color);
+    buffer.clear(sf::Color(color.r<<3, color.g<<2, color.b<<2, 255));
 }
 
 void GRAPHICS::put_pixel(uint16_t x, uint16_t y, const WalrusRPG::Graphics::Pixel &color)