| 23 | WMInstance* inst; |
| 24 | |
| 25 | void* LoadBackground(void*){ |
| 26 | int bgError = -1; |
| 27 | if(inst->compositor.useImage && (bgError = Lemon::Graphics::LoadImage(bgPath.c_str(), 0, 0, renderSurface.width, renderSurface.height, &inst->compositor.backgroundImage, true))){ |
| 28 | printf("LemonWM: Warning: Error %d loading background image.\n", bgError); |
| 29 | inst->compositor.useImage = false; |
| 30 | } |
| 31 | |
| 32 | inst->redrawBackground = true; |
| 33 | |
| 34 | return nullptr; |
| 35 | } |
| 36 | |
| 37 | int main(){ |
| 38 | CreateFramebufferSurface(fbSurface); |
nothing calls this directly
no test coverage detected