aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsfns.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/nsfns.m')
-rw-r--r--src/nsfns.m16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/nsfns.m b/src/nsfns.m
index 8bce1da2e5d..ca8f4922ccd 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -1267,11 +1267,8 @@ This function is an internal primitive--use `make-frame' instead. */)
1267 init_frame_faces (f); 1267 init_frame_faces (f);
1268 1268
1269 /* Read comment about this code in corresponding place in xfns.c. */ 1269 /* Read comment about this code in corresponding place in xfns.c. */
1270 width = FRAME_TEXT_WIDTH (f); 1270 adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f),
1271 height = FRAME_TEXT_HEIGHT (f); 1271 FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 5, 1);
1272 FRAME_TEXT_HEIGHT (f) = 0;
1273 SET_FRAME_WIDTH (f, 0);
1274 change_frame_size (f, width, height, 1, 0, 0, 1);
1275 1272
1276 /* The resources controlling the menu-bar and tool-bar are 1273 /* The resources controlling the menu-bar and tool-bar are
1277 processed specially at startup, and reflected in the mode 1274 processed specially at startup, and reflected in the mode
@@ -1342,11 +1339,10 @@ This function is an internal primitive--use `make-frame' instead. */)
1342 x_default_parameter (f, parms, Qfullscreen, Qnil, 1339 x_default_parameter (f, parms, Qfullscreen, Qnil,
1343 "fullscreen", "Fullscreen", RES_TYPE_SYMBOL); 1340 "fullscreen", "Fullscreen", RES_TYPE_SYMBOL);
1344 1341
1345 width = FRAME_TEXT_WIDTH (f); 1342 /* Consider frame official, now. */
1346 height = FRAME_TEXT_HEIGHT (f); 1343 f->official = true;
1347 FRAME_TEXT_HEIGHT (f) = 0; 1344
1348 SET_FRAME_WIDTH (f, 0); 1345 adjust_frame_size (f, FRAME_TEXT_WIDTH (f), FRAME_TEXT_HEIGHT (f), 0, 1);
1349 change_frame_size (f, width, height, 1, 0, 0, 1);
1350 1346
1351 if (! f->output_data.ns->explicit_parent) 1347 if (! f->output_data.ns->explicit_parent)
1352 { 1348 {