mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
Move WindowServer to userspace.
This is a monster patch that required changing a whole bunch of things. There are performance and stability issues all over the place, but it works. Pretty cool, I have to admit :^)
This commit is contained in:
parent
0b1b21d622
commit
640360e958
41 changed files with 325 additions and 463 deletions
|
@ -11,7 +11,7 @@ class GlyphBitmap;
|
|||
class GraphicsBitmap;
|
||||
class Font;
|
||||
|
||||
#ifndef KERNEL
|
||||
#ifdef USERLAND
|
||||
class GWidget;
|
||||
class GWindow;
|
||||
#endif
|
||||
|
@ -20,7 +20,7 @@ enum class TextAlignment { TopLeft, CenterLeft, Center, CenterRight };
|
|||
|
||||
class Painter {
|
||||
public:
|
||||
#ifndef KERNEL
|
||||
#ifdef USERLAND
|
||||
explicit Painter(GWidget&);
|
||||
#endif
|
||||
explicit Painter(GraphicsBitmap&);
|
||||
|
@ -63,9 +63,8 @@ private:
|
|||
Point m_translation;
|
||||
Rect m_clip_rect;
|
||||
RetainPtr<GraphicsBitmap> m_target;
|
||||
#ifndef KERNEL
|
||||
#ifdef LIBGUI
|
||||
GWindow* m_window { nullptr };
|
||||
void* m_backing_store_id { nullptr };
|
||||
#endif
|
||||
DrawOp m_draw_op { DrawOp::Copy };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue