From 5febf988a596165bcf47884fd59b34057f48bbf2 Mon Sep 17 00:00:00 2001 From: Aren Elchinyan Date: Wed, 17 Jan 2024 22:01:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BB=D0=B8=D1=88=D0=BD=D0=B8=D0=B9=20=D0=B1=D0=BB?= =?UTF-8?q?=D0=BE=D0=BA=20=D0=BA=D0=BE=D0=B4=D0=B0=20=D0=B2=20TGA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/tga/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/tga/main.c b/modules/tga/main.c index 3079277..6f72f4c 100644 --- a/modules/tga/main.c +++ b/modules/tga/main.c @@ -155,8 +155,7 @@ module_info_t __attribute__((section(".minit"))) init(env_t *env) { module_info_t *boot_tga = get_module("[BOOTIMG]"); if (boot_tga != NULL) { - return; - + #if 0 framebuffer_t screen = alloc_framebuffer( ); uint32_t *screen_buf = screen.address; @@ -164,6 +163,7 @@ module_info_t __attribute__((section(".minit"))) init(env_t *env) { uint32_t width = img[0]; uint32_t height = img[1]; uint32_t *img_data = (uint32_t *)img + 2; + for (uint32_t w = 0; w < width; w++) { for (uint32_t h = 0; h < height; h++) { if (*img_data == 0x013220) { @@ -173,6 +173,7 @@ module_info_t __attribute__((section(".minit"))) init(env_t *env) { screen_buf[w * height + h] = *img_data++; } } + #endif } return (module_info_t){ .name = (char *)"[MEDIA][TGA]",