[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 08/22] console: remove dpy_gfx_fill
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 08/22] console: remove dpy_gfx_fill |
Date: |
Thu, 1 Nov 2012 14:04:03 +0100 |
Unused code. 'nuff said.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
console.h | 13 -------------
ui/sdl.c | 7 -------
2 files changed, 0 insertions(+), 20 deletions(-)
diff --git a/console.h b/console.h
index 7e0ac76..6492e67 100644
--- a/console.h
+++ b/console.h
@@ -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;
diff --git a/ui/sdl.c b/ui/sdl.c
index fac1a47..c3ba79f 100644
--- a/ui/sdl.c
+++ b/ui/sdl.c
@@ -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);
--
1.7.1
- [Qemu-devel] [PULL 00/22] console cleanups & pixman rendering, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 01/22] console: QLIST-ify display change listeners., Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 08/22] console: remove dpy_gfx_fill,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 07/22] vga: fix text mode updating, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 10/22] pixman: add submodule, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 18/22] pixman: switch screendump function., Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 20/22] pixman/vnc: remove rgb_prepare_row* functions, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 03/22] console: move set_mouse + cursor_define callbacks, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 04/22] console: s/TextConsole/QemuConsole/, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 12/22] pixman: helper functions, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 15/22] console: don't set PixelFormat alpha fields for 32bpp, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 11/22] pixman: windup in configure & makefiles, Gerd Hoffmann, 2012/11/01
- [Qemu-devel] [PATCH 13/22] pixman: add pixman image to DisplaySurface, Gerd Hoffmann, 2012/11/01