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

Method SwapBuffers

LibLemon/src/gui/window.cpp:134–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 }
133
134 void Window::SwapBuffers(){
135 if(windowBufferInfo->drawing) return;
136
137 if(surface.buffer == buffer1){
138 windowBufferInfo->currentBuffer = 0;
139 surface.buffer = buffer2;
140 } else {
141 windowBufferInfo->currentBuffer = 1;
142 surface.buffer = buffer1;
143 }
144
145 windowBufferInfo->dirty = 1;
146 }
147
148 void Window::Paint(){
149 if(OnPaint) OnPaint(&surface);

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected