From 490216a692112432443a1716cc022243c6b0510c Mon Sep 17 00:00:00 2001 From: Philip Minakov Date: Tue, 2 Apr 2024 16:21:31 +0400 Subject: [PATCH 1/2] Fix ids of swi functions --- swilib/include/swilib/gbs.h | 4 ++-- swilib/include/swilib/image.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/swilib/include/swilib/gbs.h b/swilib/include/swilib/gbs.h index 9c9e16e2..40051ad8 100644 --- a/swilib/include/swilib/gbs.h +++ b/swilib/include/swilib/gbs.h @@ -327,9 +327,9 @@ __swi_end(0x154, KillGBSproc, (cepid)); * @param cepid CEPID of event processor * @return pointer * */ -__swi_begin(0x38E) +__swi_begin(0x385) void* GetGBSProcAddress(short cepid) -__swi_end(0x38E, GetGBSProcAddress, (cepid)); +__swi_end(0x385, GetGBSProcAddress, (cepid)); /** * Create new GBS Process Group. diff --git a/swilib/include/swilib/image.h b/swilib/include/swilib/image.h index e95d6dbe..a6d1f32a 100644 --- a/swilib/include/swilib/image.h +++ b/swilib/include/swilib/image.h @@ -166,9 +166,9 @@ __swi_end(0x2E0, GetIMGHDRFromThemeCache, (index)); * @param canvas_id ID of the "canvas" * @return pointer to the image * */ -__swi_begin(0x394) +__swi_begin(0x3B3) IMGHDR *GetIMGHDRFromCanvasCache(int canvas_id) -__swi_end(0x394, GetIMGHDRFromCanvasCache, (canvas_id)); +__swi_end(0x3B3, GetIMGHDRFromCanvasCache, (canvas_id)); /** * Flush "canvas" in cache. From dec56775e74a96c2082e959ea4c567215e813400 Mon Sep 17 00:00:00 2001 From: Philip Minakov Date: Tue, 2 Apr 2024 16:51:18 +0400 Subject: [PATCH 2/2] Fix enum --- swilib/include/swilib/misc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swilib/include/swilib/misc.h b/swilib/include/swilib/misc.h index d5f8bde5..22a8d74f 100644 --- a/swilib/include/swilib/misc.h +++ b/swilib/include/swilib/misc.h @@ -24,8 +24,8 @@ typedef struct LIGHT_PARAM LIGHT_PARAM; * Illumination device. * */ enum IlluminationDeviceID { - ILLUMINATION_DEV_KEYBOARD = 0, /**< Keyboard */ - ILLUMINATION_DEV_DISPLAY = 1, /**< LCD */ + ILLUMINATION_DEV_DISPLAY = 0, /**< LCD */ + ILLUMINATION_DEV_KEYBOARD = 1, /**< Keyboard */ }; /**