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) {