mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-21 00:23:16 +00:00
@ -19,7 +19,7 @@
|
||||
|
||||
struct Box_painter
|
||||
{
|
||||
typedef Genode::Surface_base::Rect Rect;
|
||||
using Rect = Genode::Surface_base::Rect;
|
||||
|
||||
/**
|
||||
* Draw filled box
|
||||
|
@ -36,7 +36,7 @@ struct Glyph_painter
|
||||
int decimal() const { return value >> 8; }
|
||||
};
|
||||
|
||||
typedef Genode::Point<Fixpoint_number> Position;
|
||||
using Position = Genode::Point<Fixpoint_number>;
|
||||
|
||||
|
||||
struct Glyph
|
||||
@ -106,7 +106,7 @@ struct Glyph_painter
|
||||
PT *dst_column = dst + dst_x
|
||||
+ dst_line_len*(dst_y1 + clipped_from_top);
|
||||
|
||||
typedef Glyph::Opacity Opacity;
|
||||
using Opacity = Glyph::Opacity;
|
||||
Opacity const *glyph_column = glyph.values + glyph_x
|
||||
+ glyph_line_len*clipped_from_top;
|
||||
|
||||
|
@ -21,14 +21,13 @@
|
||||
|
||||
struct Text_painter
|
||||
{
|
||||
typedef Genode::Surface_base::Point Point;
|
||||
typedef Genode::Surface_base::Area Area;
|
||||
typedef Genode::Surface_base::Rect Rect;
|
||||
typedef Genode::Codepoint Codepoint;
|
||||
|
||||
typedef Glyph_painter::Fixpoint_number Fixpoint_number;
|
||||
typedef Glyph_painter::Position Position;
|
||||
typedef Glyph_painter::Glyph Glyph;
|
||||
using Point = Genode::Surface_base::Point;
|
||||
using Area = Genode::Surface_base::Area;
|
||||
using Rect = Genode::Surface_base::Rect;
|
||||
using Codepoint = Genode::Codepoint;
|
||||
using Fixpoint_number = Glyph_painter::Fixpoint_number;
|
||||
using Position = Glyph_painter::Position;
|
||||
using Glyph = Glyph_painter::Glyph;
|
||||
|
||||
|
||||
/***************************************
|
||||
|
@ -39,8 +39,8 @@ struct Texture_painter
|
||||
};
|
||||
|
||||
|
||||
typedef Genode::Surface_base::Point Point;
|
||||
typedef Genode::Surface_base::Rect Rect;
|
||||
using Point = Genode::Surface_base::Point;
|
||||
using Rect = Genode::Surface_base::Rect;
|
||||
|
||||
|
||||
template <typename PT>
|
||||
|
@ -54,11 +54,10 @@ class Tff_font : public Text_painter::Font
|
||||
|
||||
private:
|
||||
|
||||
typedef Genode::int32_t int32_t;
|
||||
|
||||
typedef Text_painter::Codepoint Codepoint;
|
||||
typedef Text_painter::Area Area;
|
||||
typedef Text_painter::Glyph Glyph;
|
||||
using int32_t = Genode::int32_t;
|
||||
using Codepoint = Text_painter::Codepoint;
|
||||
using Area = Text_painter::Area;
|
||||
using Glyph = Text_painter::Glyph;
|
||||
|
||||
Glyph_buffer &_buf;
|
||||
|
||||
|
Reference in New Issue
Block a user