瀏覽代碼

SFML: Graphics::fill done

Eiyeron Fulmincendii 10 年之前
父節點
當前提交
9ad7b97119
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)