xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #163: dummy-dpi.diff

File dummy-dpi.diff, 686 bytes (added by Antoine Martin, 8 years ago)

improved patch: minimize diff

  • src/dummy_driver.c

    diff --git a/src/dummy_driver.c b/src/dummy_driver.c
    index 6062c39..9f5169f 100644
    a b  
    3434#include <X11/extensions/Xv.h>
    3535#endif
    3636
     37#include "randrstr.h"
     38
    3739/*
    3840 * Driver data structures.
    3941 */
    Bool 
    666668DUMMYSwitchMode(SWITCH_MODE_ARGS_DECL)
    667669{
    668670    SCRN_INFO_PTR(arg);
    669     return dummyModeInit(pScrn, mode);
     671    if (!dummyModeInit(pScrn, mode))
     672        return FALSE;
     673    pScrn->pScreen->mmWidth = mode->HDisplay * 254 / 960;
     674    pScrn->pScreen->mmHeight = mode->VDisplay * 254 / 960;
     675    RRScreenSizeNotify(pScrn->pScreen);
     676    RRTellChanged(pScrn->pScreen);
     677    return TRUE;
    670678}
    671679
    672680/* Mandatory */