MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / LoadBackground

Function LoadBackground

System/LemonWM/main.cpp:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23WMInstance* inst;
24
25void* 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
37int main(){
38 CreateFramebufferSurface(fbSurface);

Callers

nothing calls this directly

Calls 1

LoadImageFunction · 0.50

Tested by

no test coverage detected