Skip to content

Commit 06522b6

Browse files
Todd CopeSiegeLord
authored andcommitted
1 parent d2b6b61 commit 06522b6

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

addons/native_dialog/menu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,6 @@ bool al_set_display_menu(ALLEGRO_DISPLAY *display, ALLEGRO_MENU *menu)
792792
_al_vector_delete_at(&display_menus, i);
793793

794794
if (automatic_menu_display_resize && menu_height > 0) {
795-
display->extra_resize_height = 0;
796795
al_resize_display(display, al_get_display_width(display), al_get_display_height(display));
797796
}
798797
}
@@ -826,7 +825,6 @@ bool al_set_display_menu(ALLEGRO_DISPLAY *display, ALLEGRO_MENU *menu)
826825
/* Temporarily disable the constraints so we don't send a RESIZE_EVENT. */
827826
bool old_constraints = display->use_constraints;
828827
display->use_constraints = false;
829-
display->extra_resize_height = menu_height;
830828
al_resize_display(display, al_get_display_width(display), al_get_display_height(display));
831829
display->use_constraints = old_constraints;
832830
}

include/allegro5/internal/aintern_display.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,6 @@ struct ALLEGRO_DISPLAY
158158

159159
/* Issue #725 */
160160
bool use_constraints;
161-
162-
/* On Windows, menus take up the display's height so whenever doing a
163-
* manual resize we need to add this number to the height for things
164-
* to work correctly. See issue #860. */
165-
int extra_resize_height;
166161
};
167162

168163
int _al_score_display_settings(ALLEGRO_EXTRA_DISPLAY_SETTINGS *eds, ALLEGRO_EXTRA_DISPLAY_SETTINGS *ref);

src/display.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ ALLEGRO_DISPLAY *al_create_display(int w, int h)
7171
display->max_w = 0;
7272
display->max_h = 0;
7373
display->use_constraints = false;
74-
display->extra_resize_height = 0;
7574

7675
display->vertex_cache = 0;
7776
display->num_cache_vertices = 0;
@@ -237,10 +236,10 @@ bool al_resize_display(ALLEGRO_DISPLAY *display, int width, int height)
237236
ASSERT(display);
238237
ASSERT(display->vt);
239238

240-
ALLEGRO_INFO("Requested display resize %dx%d+%d\n", width, height, display->extra_resize_height);
239+
ALLEGRO_INFO("Requested display resize %dx%d\n", width, height);
241240

242241
if (display->vt->resize_display) {
243-
return display->vt->resize_display(display, width, height + display->extra_resize_height);
242+
return display->vt->resize_display(display, width, height);
244243
}
245244
return false;
246245
}

0 commit comments

Comments
 (0)