From dbe75d3ea1333d18f6c997b998f5f6afef9fc1f9 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Sun, 8 Apr 2018 17:21:08 +0800 Subject: [PATCH] cleanup --- src/ial/2440.c | 2 -- src/newgal/commlcd/commlcd.c | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ial/2440.c b/src/ial/2440.c index c912e433..57a6f1f2 100644 --- a/src/ial/2440.c +++ b/src/ial/2440.c @@ -169,8 +169,6 @@ BOOL Init2440Input (INPUT* input, const char* mdev, const char* mtype) return FALSE; } - printf ("In 2410 engine\n"); - input->update_mouse = mouse_update; input->get_mouse_xy = mouse_getxy; input->set_mouse_xy = NULL; diff --git a/src/newgal/commlcd/commlcd.c b/src/newgal/commlcd/commlcd.c index 4b39e2b1..1b8e7147 100644 --- a/src/newgal/commlcd/commlcd.c +++ b/src/newgal/commlcd/commlcd.c @@ -199,6 +199,8 @@ static int COMMLCD_VideoInit(_THIS, GAL_PixelFormat *vformat) static GAL_Surface *COMMLCD_SetVideoMode(_THIS, GAL_Surface *current, int width, int height, int bpp, Uint32 flags) { + Uint32 Rmask = 0, Gmask = 0, Bmask = 0, Amask = 0; + struct commlcd_info li; if (__mg_commlcd_ops.getinfo (&li)) { fprintf (stderr, "NEWGAL>COMMLCD: " @@ -213,7 +215,6 @@ static GAL_Surface *COMMLCD_SetVideoMode(_THIS, GAL_Surface *current, memset (li.fb, 0, li.rlen * height); - Uint32 Rmask = 0, Gmask = 0, Bmask = 0, Amask = 0; if (li.type == COMMLCD_TRUE_BGR565) { Bmask = 0xF800; Gmask = 0x07E0;