소스 검색

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)