display: minor doc fix and code cleanup

This commit is contained in:
rdb 2023-05-05 10:45:26 +02:00
parent f5d5340ad3
commit 87b46a61ed

View File

@ -1113,8 +1113,9 @@ clear_pipe() {
/** /**
* Changes the x_size and y_size, then recalculates structures that depend on * Changes the x_size and y_size, then recalculates structures that depend on
* size. The recalculation currently includes: - compute_pixels on all the * size. The recalculation currently includes:
* graphics regions. - updating the texture card, if one is present. * - compute_pixels on all the graphics regions.
* - updating the texture card, if one is present.
*/ */
void GraphicsOutput:: void GraphicsOutput::
set_size_and_recalc(int x, int y) { set_size_and_recalc(int x, int y) {
@ -1126,11 +1127,8 @@ set_size_and_recalc(int x, int y) {
int fb_x_size = get_fb_x_size(); int fb_x_size = get_fb_x_size();
int fb_y_size = get_fb_y_size(); int fb_y_size = get_fb_y_size();
TotalDisplayRegions::iterator dri; for (DisplayRegion *dr : _total_display_regions) {
for (dri = _total_display_regions.begin(); dr->compute_pixels_all_stages(fb_x_size, fb_y_size);
dri != _total_display_regions.end();
++dri) {
(*dri)->compute_pixels_all_stages(fb_x_size, fb_y_size);
} }
if (_texture_card != nullptr && _texture_card->get_num_geoms() > 0) { if (_texture_card != nullptr && _texture_card->get_num_geoms() > 0) {