Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
PureOS
Packages
qemu
Commits
4dc6a39b
Commit
4dc6a39b
authored
Sep 28, 2012
by
Gerd Hoffmann
Browse files
console: remove dpy_gfx_fill
Unused code. 'nuff said. Signed-off-by:
Gerd Hoffmann
<
kraxel@redhat.com
>
parent
9678aedd
Changes
2
Hide whitespace changes
Inline
Side-by-side
console.h
View file @
4dc6a39b
...
...
@@ -161,8 +161,6 @@ struct DisplayChangeListener {
void
(
*
dpy_gfx_setdata
)(
struct
DisplayState
*
s
);
void
(
*
dpy_gfx_copy
)(
struct
DisplayState
*
s
,
int
src_x
,
int
src_y
,
int
dst_x
,
int
dst_y
,
int
w
,
int
h
);
void
(
*
dpy_gfx_fill
)(
struct
DisplayState
*
s
,
int
x
,
int
y
,
int
w
,
int
h
,
uint32_t
c
);
void
(
*
dpy_text_cursor
)(
struct
DisplayState
*
s
,
int
x
,
int
y
);
void
(
*
dpy_text_resize
)(
struct
DisplayState
*
s
,
int
w
,
int
h
);
...
...
@@ -306,17 +304,6 @@ static inline void dpy_gfx_copy(struct DisplayState *s, int src_x, int src_y,
}
}
static
inline
void
dpy_gfx_fill
(
struct
DisplayState
*
s
,
int
x
,
int
y
,
int
w
,
int
h
,
uint32_t
c
)
{
struct
DisplayChangeListener
*
dcl
;
QLIST_FOREACH
(
dcl
,
&
s
->
listeners
,
next
)
{
if
(
dcl
->
dpy_gfx_fill
)
{
dcl
->
dpy_gfx_fill
(
s
,
x
,
y
,
w
,
h
,
c
);
}
}
}
static
inline
void
dpy_text_cursor
(
struct
DisplayState
*
s
,
int
x
,
int
y
)
{
struct
DisplayChangeListener
*
dcl
;
...
...
ui/sdl.c
View file @
4dc6a39b
...
...
@@ -899,12 +899,6 @@ static void sdl_refresh(DisplayState *ds)
}
}
static
void
sdl_fill
(
DisplayState
*
ds
,
int
x
,
int
y
,
int
w
,
int
h
,
uint32_t
c
)
{
SDL_Rect
dst
=
{
x
,
y
,
w
,
h
};
SDL_FillRect
(
real_screen
,
&
dst
,
c
);
}
static
void
sdl_mouse_warp
(
DisplayState
*
ds
,
int
x
,
int
y
,
int
on
)
{
if
(
on
)
{
...
...
@@ -1024,7 +1018,6 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)
dcl
->
dpy_gfx_resize
=
sdl_resize
;
dcl
->
dpy_refresh
=
sdl_refresh
;
dcl
->
dpy_gfx_setdata
=
sdl_setdata
;
dcl
->
dpy_gfx_fill
=
sdl_fill
;
dcl
->
dpy_mouse_set
=
sdl_mouse_warp
;
dcl
->
dpy_cursor_define
=
sdl_mouse_define
;
register_displaychangelistener
(
ds
,
dcl
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment