Skip to content
Snippets Groups Projects
Commit d19c3bcb authored by deuce's avatar deuce
Browse files

Do auto-scaling for X11 too.

parent 8c38238c
No related branches found
No related tags found
No related merge requests found
......@@ -271,9 +271,21 @@ static void resize_window()
static int init_mode(int mode)
{
int i;
int oldcols=vstat.cols;
bitmap_init_mode(mode, &bitmap_width, &bitmap_height);
/* Deal with 40 col doubling */
if(oldcols != vstat.cols) {
if(oldcols == 40)
vstat.scaling /= 2;
if(vstat.cols == 40)
vstat.scaling *= 2;
}
if(vstat.scaling < 1)
vstat.scaling = 1;
/* Resize window if necessary. */
resize_window();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment