From e39dc7ee7e877b2e0fb5dd455742cd15429f3690 Mon Sep 17 00:00:00 2001 From: kbz_8 Date: Wed, 2 Aug 2023 12:52:38 +0200 Subject: [PATCH] fixing get pixel image issue --- src/renderer/images/texture.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/images/texture.cpp b/src/renderer/images/texture.cpp index 62e9d2f..6f38b23 100644 --- a/src/renderer/images/texture.cpp +++ b/src/renderer/images/texture.cpp @@ -6,7 +6,7 @@ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/03/31 18:03:35 by maldavid #+# #+# */ -/* Updated: 2023/08/02 12:34:25 by maldavid ### ########.fr */ +/* Updated: 2023/08/02 12:52:26 by maldavid ### ########.fr */ /* */ /* ************************************************************************** */ @@ -72,7 +72,6 @@ namespace mlx if(_map == nullptr) openCPUmap(); uint32_t color = _cpu_map[(y * getWidth()) + x]; - color >>= 8; return (color); }