mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-07 11:01:57 +08:00
debug
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user