summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WSScreen.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-06 11:56:38 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-06 11:56:38 +0100
commit11580babbfb1b8ae0acab2400f11d905c35642f5 (patch)
tree3b26fcd4bf7afe9ff92203468ba7cd95e192d55f /Servers/WindowServer/WSScreen.h
parent939a605334a71dd8b7af91cdcbe9047281f7b5b9 (diff)
downloadserenity-11580babbfb1b8ae0acab2400f11d905c35642f5.zip
LibDraw: Put all classes in the Gfx namespace
I started adding things to a Draw namespace, but it somehow felt really wrong seeing Draw::Rect and Draw::Bitmap, etc. So instead, let's rename the library to LibGfx. :^)
Diffstat (limited to 'Servers/WindowServer/WSScreen.h')
-rw-r--r--Servers/WindowServer/WSScreen.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Servers/WindowServer/WSScreen.h b/Servers/WindowServer/WSScreen.h
index c62d8964c5..7fc02b982c 100644
--- a/Servers/WindowServer/WSScreen.h
+++ b/Servers/WindowServer/WSScreen.h
@@ -45,7 +45,7 @@ public:
int width() const { return m_width; }
int height() const { return m_height; }
size_t pitch() const { return m_pitch; }
- RGBA32* scanline(int y);
+ Gfx::RGBA32* scanline(int y);
static WSScreen& the();
@@ -63,7 +63,7 @@ private:
size_t m_size_in_bytes;
- RGBA32* m_framebuffer { nullptr };
+ Gfx::RGBA32* m_framebuffer { nullptr };
bool m_can_set_buffer { false };
int m_pitch { 0 };
@@ -71,12 +71,12 @@ private:
int m_height { 0 };
int m_framebuffer_fd { -1 };
- Point m_cursor_location;
+ Gfx::Point m_cursor_location;
unsigned m_mouse_button_state { 0 };
unsigned m_modifiers { 0 };
};
-inline RGBA32* WSScreen::scanline(int y)
+inline Gfx::RGBA32* WSScreen::scanline(int y)
{
- return reinterpret_cast<RGBA32*>(((u8*)m_framebuffer) + (y * m_pitch));
+ return reinterpret_cast<Gfx::RGBA32*>(((u8*)m_framebuffer) + (y * m_pitch));
}