summaryrefslogtreecommitdiff
path: root/Widgets
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-12 20:59:09 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-12 20:59:09 +0100
commitdefd899b3868f7c0ad699e46fa8eb4585a33aeff (patch)
tree42c0e158053743aaef37f6c9464ff9d837f3a469 /Widgets
parentf2551c45ab64c464f48c07d642d0bfc4ef92d8e0 (diff)
downloadserenity-defd899b3868f7c0ad699e46fa8eb4585a33aeff.zip
Remove FrameBuffer::blit() since it was superseded by Painter::blit().
Diffstat (limited to 'Widgets')
-rw-r--r--Widgets/FrameBuffer.cpp14
-rw-r--r--Widgets/FrameBuffer.h1
2 files changed, 0 insertions, 15 deletions
diff --git a/Widgets/FrameBuffer.cpp b/Widgets/FrameBuffer.cpp
index 89e2a57090..514d90abdf 100644
--- a/Widgets/FrameBuffer.cpp
+++ b/Widgets/FrameBuffer.cpp
@@ -90,20 +90,6 @@ RGBA32* FrameBuffer::scanline(int y)
#endif
}
-void FrameBuffer::blit(const Point& position, GraphicsBitmap& bitmap)
-{
- Rect dst_rect(position, bitmap.size());
- //printf("blit at %d,%d %dx%d\n", dst_rect.x(), dst_rect.y(), dst_rect.width(), dst_rect.height());
- dst_rect.intersect(rect());
- //printf(" -> intersection %d,%d %dx%d\n", dst_rect.x(), dst_rect.y(), dst_rect.width(), dst_rect.height());
-
- for (int y = 0; y < dst_rect.height(); ++y) {
- auto* framebuffer_scanline = scanline(position.y() + y);
- auto* bitmap_scanline = bitmap.scanline(y);
- memcpy(framebuffer_scanline + dst_rect.x(), bitmap_scanline + (dst_rect.x() - position.x()), dst_rect.width() * 4);
- }
-}
-
void FrameBuffer::flush()
{
#ifdef USE_SDL
diff --git a/Widgets/FrameBuffer.h b/Widgets/FrameBuffer.h
index 56b2f53062..da00d84141 100644
--- a/Widgets/FrameBuffer.h
+++ b/Widgets/FrameBuffer.h
@@ -25,7 +25,6 @@ public:
RGBA32* scanline(int y);
- void blit(const Point&, GraphicsBitmap&);
void flush();
static void initialize();