mirror of
https://github.com/fallout2-ce/fallout2-ce.git
synced 2026-07-27 16:47:11 -07:00
Update window_manager.cc
removed unneeded comments
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user