5474 |
} |
} |
5475 |
|
|
5476 |
|
|
|
/* Calculate fullscreen size. Return in *TOP_POS and *LEFT_POS the |
|
|
wanted positions of the WM window (not emacs window). |
|
|
Return in *WIDTH and *HEIGHT the wanted width and height of Emacs |
|
|
window (FRAME_X_WINDOW). |
|
|
*/ |
|
|
void |
|
|
x_fullscreen_adjust (f, width, height, top_pos, left_pos) |
|
|
struct frame *f; |
|
|
int *width; |
|
|
int *height; |
|
|
int *top_pos; |
|
|
int *left_pos; |
|
|
{ |
|
|
int newwidth = f->width, newheight = f->height; |
|
|
|
|
|
*top_pos = f->output_data.w32->top_pos; |
|
|
*left_pos = f->output_data.w32->left_pos; |
|
|
|
|
|
if (f->output_data.w32->want_fullscreen & FULLSCREEN_HEIGHT) |
|
|
{ |
|
|
int ph; |
|
|
|
|
|
ph = FRAME_X_DISPLAY_INFO (f)->height; |
|
|
newheight = PIXEL_TO_CHAR_HEIGHT (f, ph); |
|
|
ph = CHAR_TO_PIXEL_HEIGHT (f, newheight) |
|
|
- f->output_data.w32->y_pixels_diff; |
|
|
newheight = PIXEL_TO_CHAR_HEIGHT (f, ph); |
|
|
*top_pos = 0; |
|
|
} |
|
|
|
|
|
if (f->output_data.w32->want_fullscreen & FULLSCREEN_WIDTH) |
|
|
{ |
|
|
int pw; |
|
|
|
|
|
pw = FRAME_X_DISPLAY_INFO (f)->width; |
|
|
newwidth = PIXEL_TO_CHAR_WIDTH (f, pw); |
|
|
pw = CHAR_TO_PIXEL_WIDTH (f, newwidth) |
|
|
- f->output_data.w32->x_pixels_diff; |
|
|
newwidth = PIXEL_TO_CHAR_WIDTH (f, pw); |
|
|
*left_pos = 0; |
|
|
} |
|
|
|
|
|
*width = newwidth; |
|
|
*height = newheight; |
|
|
} |
|
|
|
|
|
|
|
5477 |
/* Call this to change the size of frame F's x-window. |
/* Call this to change the size of frame F's x-window. |
5478 |
If CHANGE_GRAVITY is 1, we change to top-left-corner window gravity |
If CHANGE_GRAVITY is 1, we change to top-left-corner window gravity |
5479 |
for this size change and subsequent size changes. |
for this size change and subsequent size changes. |
6333 |
x_flush (struct frame * f) |
x_flush (struct frame * f) |
6334 |
{ /* Nothing to do */ } |
{ /* Nothing to do */ } |
6335 |
|
|
6336 |
|
extern frame_parm_handler w32_frame_parm_handlers[]; |
6337 |
|
|
6338 |
static struct redisplay_interface w32_redisplay_interface = |
static struct redisplay_interface w32_redisplay_interface = |
6339 |
{ |
{ |
6340 |
|
w32_frame_parm_handlers, |
6341 |
x_produce_glyphs, |
x_produce_glyphs, |
6342 |
x_write_glyphs, |
x_write_glyphs, |
6343 |
x_insert_glyphs, |
x_insert_glyphs, |