Update window_manager.cc

removed unneeded comments
This commit is contained in:
cambragol
2025-06-24 14:39:36 +09:00
committed by GitHub
parent 240aa8a212
commit ce4495589b
+5 -3
View File
@@ -809,6 +809,8 @@ void _GNW_win_refresh(Window* window, Rect* rect, unsigned char* dest)
return;
}
// CE: original code seems to have had special code for handling non-refresh-all for transparent updates, but it was incomplete and removed
// Initial rectangle list node representing the intersection of window and refresh areas
refreshRectList = _rect_malloc();
if (refreshRectList == nullptr) {
@@ -855,7 +857,7 @@ void _GNW_win_refresh(Window* window, Rect* rect, unsigned char* dest)
dest_pitch);
}
} else {
if (_buffering) { // note: _buffering appears to always be false
if (_buffering) {
if (window->flags & WINDOW_TRANSPARENT) {
window->blitProc(
window->buffer + clipRect->rect.left - window->rect.left + (clipRect->rect.top - window->rect.top) * window->width,
@@ -907,7 +909,7 @@ void _GNW_win_refresh(Window* window, Rect* rect, unsigned char* dest)
dest + dest_pitch * (clipRect->rect.top - rect->top) + clipRect->rect.left - rect->left,
dest_pitch);
} else {
if (_buffering) { // note: _buffering appears to always be false
if (_buffering) {
blitBufferToBuffer(buf,
width,
height,
@@ -929,7 +931,7 @@ void _GNW_win_refresh(Window* window, Rect* rect, unsigned char* dest)
while (screenRect) {
nextRect = screenRect->next;
// if double-buffering, copy double buffer to screen (appears to always be false)
// if double-buffering, copy double buffer to screen
if (_buffering && !dest) {
_scr_blit(
_screen_buffer + screenRect->rect.left + (_scr_size.right - _scr_size.left + 1) * screenRect->rect.top,