Ticket #554: mbitter.freegdi.patch

File mbitter.freegdi.patch, 542 bytes (added by thomas0782, 10 years ago)
  • navit/graphics/win32/graphics_win32.c

     
    994991
    995992    SelectObject(gr->hMemDC, hOldFont);
    996993    DeleteObject (font->hfont) ;
     994    font->hfont = NULL;
    997995
    998996    SetBkMode( gr->hMemDC, prevBkMode );
    999997
     
    10051003    if ( font->hfont )
    10061004    {
    10071005        DeleteObject(font->hfont);
     1006        font->hfont = NULL;
    10081007    }
    10091008    g_free(font);
    10101009}