> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 21:55:13 up 7 days, 21:55,  1 user,  load average: 0.22, 0.22, 0.21
This commit is contained in:
tracer-ics2023
2024-09-25 21:55:13 +08:00
committed by zzy
parent 57c50b6794
commit d56d5869cd

View File

@ -3,6 +3,8 @@
#include <stdio.h>
#include <assert.h>
#include <NDL.h>
#include <BMP.h>
#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) {