> 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:58:23 up 7 days, 21:58,  1 user,  load average: 0.18, 0.27, 0.24
This commit is contained in:
tracer-ics2023
2024-09-25 21:58:23 +08:00
committed by zzy
parent 87f33cb313
commit ee6df1ba77

View File

@ -28,7 +28,9 @@ void render() {
char fname[256]; char fname[256];
sprintf(fname, path, cur); sprintf(fname, path, cur);
// slide = SDL_LoadBMP(fname); // slide = SDL_LoadBMP(fname);
uint32_t* slide = (uint32_t*)BMP_Load(fname, NULL, NULL); int w, h;
uint32_t* slide = (uint32_t*)BMP_Load(fname, &w, &h);
NDL_OpenCanvas(&w, &h);
assert(slide); assert(slide);
// SDL_UpdateRect(slide, 0, 0, 0, 0); // SDL_UpdateRect(slide, 0, 0, 0, 0);
NDL_DrawRect(slide, 0, 0, W, H); NDL_DrawRect(slide, 0, 0, W, H);