fix some compilation errors

This commit is contained in:
Vincent Wei
2023-08-01 14:54:09 +08:00
parent 0a10b81499
commit f1463f41de
3 changed files with 7 additions and 7 deletions

View File

@@ -1169,7 +1169,6 @@ void kernel_ShowCursorForGDI (BOOL fShow, void* pdc)
GAL_SyncUpdate (cur_pdc->surface);
}
done:
/* Since 5.0.13 */
if (fShow) {
GAL_UnlockSurface(cur_pdc->surface);

View File

@@ -48,6 +48,7 @@
#define _GAL_fbvideo_h
#include <pthread.h>
#include <semaphore.h>
#include <sys/types.h>
#include <termios.h>
#include <linux/fb.h>

View File

@@ -242,12 +242,12 @@ int GAL_SetColorKey (GAL_Surface *surface, Uint32 flag, Uint32 key)
}
if (flag) {
GAL_VideoDevice *video = __mg_current_video;
GAL_VideoDevice *this = __mg_current_video;
surface->flags |= GAL_SRCCOLORKEY;
surface->format->colorkey = key;
#if 0
GAL_VideoDevice *video = __mg_current_video;
GAL_VideoDevice *this = __mg_current_video;
if ((surface->flags & GAL_HWACCEL) == GAL_HWACCEL) {
if ((video->SetHWColorKey == NULL) ||
(video->SetHWColorKey(this, surface, key) < 0)) {
@@ -299,9 +299,6 @@ int GAL_SetAlpha (GAL_Surface *surface, Uint32 flag, Uint8 value)
GAL_UnRLESurface(surface, 1);
if (flag) {
GAL_VideoDevice *video = __mg_current_video;
GAL_VideoDevice *this = __mg_current_video;
if (flag & GAL_SRCALPHA) {
surface->flags |= GAL_SRCALPHA;
surface->format->alpha = value;
@@ -310,6 +307,9 @@ int GAL_SetAlpha (GAL_Surface *surface, Uint32 flag, Uint8 value)
}
#if 0
GAL_VideoDevice *video = __mg_current_video;
GAL_VideoDevice *this = __mg_current_video;
if ((surface->flags & GAL_HWACCEL) == GAL_HWACCEL) {
if ((video->SetHWAlpha == NULL) ||
(video->SetHWAlpha(this, surface, value) < 0)) {