This commit is contained in:
Vincent Wei
2023-08-31 17:00:50 +08:00
parent fa18025350
commit 5a2b425012
2 changed files with 5 additions and 5 deletions

View File

@@ -257,7 +257,7 @@ typedef struct GAL_Surface {
#define GAL_PREALLOC 0x01000000 /* Surface uses preallocated memory */
#define GAL_FORMAT_CHECKED 0x02000000 /* Pixman format checked */
#define GAL_SSURF_ATTACHED 0x04000000 /* The shared surface is attached to. */
#define GAL_SSURF_LOCKED 0x04000000 /* The shared surface is locked. */
#define GAL_SSURF_LOCKED 0x08000000 /* The shared surface is locked. */
/* Available for GAL_SetVideoMode() */
#define GAL_ANYFORMAT 0x10000000 /* Allow any video depth/pixel-format */

View File

@@ -337,7 +337,7 @@ BOOL GUIAPI LockSharedSurface(HSURF surf, unsigned *dirty_age,
int *nr_dirty_rcs, const RECT **dirty_rcs)
{
if (surf->shared_header == NULL) {
_ERR_PRINTF("INVALID_ARG: surface handle: %p\n", surf);
_WRN_PRINTF("INVALID_ARG: surface handle: %p\n", surf);
goto failed;
}
@@ -370,7 +370,7 @@ failed:
BOOL GUIAPI UnlockSharedSurface(HSURF surf, BOOL clear_dirty)
{
if (surf->shared_header == NULL) {
_ERR_PRINTF("INVALID_ARG: surface handle: %p\n", surf);
_WRN_PRINTF("INVALID_ARG: surface handle: %p\n", surf);
goto failed;
}
@@ -395,12 +395,12 @@ failed:
BOOL GUIAPI DetachFromSharedSurface(HSURF surf)
{
if (surf->shared_header == NULL) {
_ERR_PRINTF("INVALID_ARG: not a shared surface: %p\n", surf);
_WRN_PRINTF("INVALID_ARG: not a shared surface: %p\n", surf);
goto failed;
}
if (!(surf->flags & GAL_SSURF_ATTACHED)) {
_ERR_PRINTF("INVALID_CALL: surface was not created by attaching: %p\n", surf);
_WRN_PRINTF("INVALID_CALL: surface was not created by attaching: %p\n", surf);
goto failed;
}