diff --git a/navy-apps/apps/nslider/src/main.cpp b/navy-apps/apps/nslider/src/main.cpp index 2fd658b..4ceb869 100644 --- a/navy-apps/apps/nslider/src/main.cpp +++ b/navy-apps/apps/nslider/src/main.cpp @@ -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);