Ticket #554: mbitter.EzCreateFont.patch

File mbitter.EzCreateFont.patch, 858 bytes (added by thomas0782, 9 years ago)
  • navit/graphics/win32/graphics_win32.c

     
    97101
    98102    SaveDC (hdc) ;
    99103
    100 #ifndef HAVE_API_WIN32_CE
    101     SetGraphicsMode (hdc, GM_ADVANCED) ;
    102     ModifyWorldTransform (hdc, NULL, MWT_IDENTITY) ;
    103 #endif
    104104    SetViewportOrgEx (hdc, 0, 0, NULL) ;
    105 #ifndef HAVE_API_WIN32_CE
    106     SetWindowOrgEx   (hdc, 0, 0, NULL) ;
    107 #endif
    108105
    109106    if (fLogRes)
    110107    {
     
    123120    pt.x = (int) (iDeciPtWidth  * cxDpi / 72) ;
    124121    pt.y = (int) (iDeciPtHeight * cyDpi / 72) ;
    125122
    126 #ifndef HAVE_API_WIN32_CE
    127     DPtoLP (hdc, &pt, 1) ;
    128 #endif
    129123    lf.lfHeight         = - (int) (fabs (pt.y) / 10.0 + 0.5) ;
    130124    lf.lfWidth          = 0 ;
    131125    lf.lfEscapement     = 0 ;