> 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:
@ -28,7 +28,9 @@ void render() {
|
||||
char fname[256];
|
||||
sprintf(fname, path, cur);
|
||||
// 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);
|
||||
// SDL_UpdateRect(slide, 0, 0, 0, 0);
|
||||
NDL_DrawRect(slide, 0, 0, W, H);
|
||||
|
Reference in New Issue
Block a user