From d764010c984c11c9535169a9935a171d44cbf208 Mon Sep 17 00:00:00 2001 From: Pedro V <2190926+pvaladares@users.noreply.github.com> Date: Thu, 21 Jul 2022 22:50:25 +0100 Subject: [PATCH] Update mlx_pixel_put.3 This file was cloned from mlx_pixel_put.1 and rename to .3 extension. However the original file was changed and this not. So this change is to match the current version of mlx_pixel_put.1 that now uses a table to display the RGB logic --- man/man3/mlx_pixel_put.3 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/man/man3/mlx_pixel_put.3 b/man/man3/mlx_pixel_put.3 index f4d131ee..258df58c 100644 --- a/man/man3/mlx_pixel_put.3 +++ b/man/man3/mlx_pixel_put.3 @@ -63,11 +63,14 @@ to create the original color. Theses three values must be set inside the integer to display the right color. The three least significant bytes of this integer are filled as shown in the picture below: -.nf - | 0 | R | G | B | color integer - +---+---+---+---+ -.fi - +.TS +allbox; +c s s s s +r c c c c. +Color Integer +Interpretation \[*a] R G B +Bit numbers 31..24 23..16 15..8 7..0 +.TE While filling the integer, make sure you avoid endian problems. Remember that the "blue" byte should always be the least significant one.