[retro-gtk] pixelf-format: Use G_MAXINT rather than -1
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] pixelf-format: Use G_MAXINT rather than -1
- Date: Sun, 1 Aug 2021 13:10:44 +0000 (UTC)
commit 5af6b3ee87695dfccc993c29a54c461c95d55149
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Aug 1 14:19:22 2021 +0200
pixelf-format: Use G_MAXINT rather than -1
This is clearer and safer.
shared/retro-pixel-format-private.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/shared/retro-pixel-format-private.h b/shared/retro-pixel-format-private.h
index d59891e..2e16640 100644
--- a/shared/retro-pixel-format-private.h
+++ b/shared/retro-pixel-format-private.h
@@ -25,7 +25,7 @@ typedef enum
RETRO_PIXEL_FORMAT_XRGB1555,
RETRO_PIXEL_FORMAT_XRGB8888,
RETRO_PIXEL_FORMAT_RGB565,
- RETRO_PIXEL_FORMAT_UNKNOWN = -1,
+ RETRO_PIXEL_FORMAT_UNKNOWN = G_MAXINT,
} RetroPixelFormat;
gboolean retro_pixel_format_to_gl (RetroPixelFormat pixel_format,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]