From a01759f8f0f3e5eab952631dd14188c7ece149f7 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 1 Dec 2022 08:32:57 -0800 Subject: [PATCH] Fixed 16-bit RGBA masks --- docs/README-migration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README-migration.md b/docs/README-migration.md index a4386ea79..6f89b561f 100644 --- a/docs/README-migration.md +++ b/docs/README-migration.md @@ -200,8 +200,8 @@ But if you're migrating your code which uses masks, you probably have a format i 0x00FF0000 0x0000FF00 0x000000FF 0xFF000000 => SDL_PIXELFORMAT_ARGB8888 0x0000FF00 0x00FF0000 0xFF000000 0x000000FF => SDL_PIXELFORMAT_BGRA8888 0x000000FF 0x0000FF00 0x00FF0000 0xFF000000 => SDL_PIXELFORMAT_ABGR8888 -0x00007C00 00000x03E0 00000x001F 0x00000000 => SDL_PIXELFORMAT_RGB555 -0x00007C00 00000x03E0 00000x001F 0x00008000 => SDL_PIXELFORMAT_ARGB1555 +0x00007C00 0x000003E0 0x0000001F 0x00000000 => SDL_PIXELFORMAT_RGB555 +0x00007C00 0x000003E0 0x0000001F 0x00008000 => SDL_PIXELFORMAT_ARGB1555 ```