Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
5a9aae2e
Commit
5a9aae2e
authored
Mar 27, 2009
by
Jan Djärv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(x_set_font): If the fullscreen property is non-nil, adjust
lines and columns so we keep the same pixel height and width.
parent
11ff3b67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/frame.c
src/frame.c
+18
-0
No files found.
src/frame.c
View file @
5a9aae2e
...
...
@@ -3422,7 +3422,25 @@ x_set_font (f, arg, oldval)
if
(
!
NILP
(
Fequal
(
font_object
,
oldval
)))
return
;
Lisp_Object
lval
=
Fassq
(
Qfullscreen
,
f
->
param_alist
);
if
(
CONSP
(
lval
))
lval
=
CDR
(
lval
);
x_new_font
(
f
,
font_object
,
fontset
);
/* If the fullscreen property is non-nil, adjust lines and columns so we
keep the same pixel height and width. */
if
(
!
NILP
(
lval
))
{
int
height
=
FRAME_LINES
(
f
),
width
=
FRAME_COLS
(
f
);
if
(
EQ
(
lval
,
Qfullboth
)
||
EQ
(
lval
,
Qfullwidth
))
width
=
FRAME_PIXEL_WIDTH_TO_TEXT_COLS
(
f
,
FRAME_PIXEL_WIDTH
(
f
));
if
(
EQ
(
lval
,
Qfullboth
)
||
EQ
(
lval
,
Qfullheight
))
height
=
FRAME_PIXEL_HEIGHT_TO_TEXT_LINES
(
f
,
FRAME_PIXEL_HEIGHT
(
f
));
change_frame_size
(
f
,
height
,
width
,
0
,
0
,
1
);
}
store_frame_param
(
f
,
Qfont
,
arg
);
/* Recalculate toolbar height. */
f
->
n_tool_bar_rows
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment