From d56d5869cd3c6599af4962c7d059175f648843eb Mon Sep 17 00:00:00 2001 From: tracer-ics2023 Date: Wed, 25 Sep 2024 21:55:13 +0800 Subject: [PATCH] =?UTF-8?q?>=20=20compile=20NEMU=20221220000=20=E5=BC=A0?= =?UTF-8?q?=E4=B8=89=20Linux=20zzy=205.15.146.1-microsoft-standard-WSL2=20?= =?UTF-8?q?#1=20SMP=20Thu=20Jan=2011=2004:09:03=20UTC=202024=20x86=5F64=20?= =?UTF-8?q?x86=5F64=20x86=5F64=20GNU/Linux=20=2021:55:13=20up=207=20days,?= =?UTF-8?q?=2021:55,=20=201=20user,=20=20load=20average:=200.22,=200.22,?= =?UTF-8?q?=200.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- navy-apps/apps/nslider/src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/navy-apps/apps/nslider/src/main.cpp b/navy-apps/apps/nslider/src/main.cpp index 8280473..2fd658b 100644 --- a/navy-apps/apps/nslider/src/main.cpp +++ b/navy-apps/apps/nslider/src/main.cpp @@ -3,6 +3,8 @@ #include #include +#include +#include #define W 400 #define H 300 @@ -25,9 +27,11 @@ void render() { } char fname[256]; sprintf(fname, path, cur); - slide = SDL_LoadBMP(fname); + // slide = SDL_LoadBMP(fname); + uint32_t* slide = (uint32_t*)BMP_Load(fname, NULL, NULL); assert(slide); - SDL_UpdateRect(slide, 0, 0, 0, 0); + // SDL_UpdateRect(slide, 0, 0, 0, 0); + NDL_DrawRect(slide, 0, 0, W, H); } void prev(int rep) {