Ticket #14458: window_zoom.diff

File window_zoom.diff, 1.2 KB (added by jalopeura, 6 years ago)

patch

  • src/add-ons/input_server/methods/Jamfile

    diff --git a/src/add-ons/input_server/methods/Jamfile b/src/add-ons/input_server/methods/Jamfile
    index 86ab645803..039bad594e 100644
    a b SubDir HAIKU_TOP src add-ons input_server methods ;  
    22
    33SubInclude HAIKU_TOP src add-ons input_server methods pen ;
    44SubInclude HAIKU_TOP src add-ons input_server methods t9 ;
     5SubInclude HAIKU_TOP src add-ons input_server methods xdk ;
     6 No newline at end of file
  • src/kits/interface/Window.cpp

    diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp
    index 89afdff9b7..ed291c818c 100644
    a b BWindow::Zoom()  
    17611761    if (zoomArea.Width() > maxZoomWidth)
    17621762        zoomArea.InsetBy(roundf((zoomArea.Width() - maxZoomWidth) / 2), 0);
    17631763
     1764    // the divide by two and round associated with inset toward center
     1765    // can sometimes leave the width and/or height one pixel less than expected
     1766    // and since .5 rounds down, it will be right and/or bottom that is short
     1767    if (zoomArea.Width() < maxZoomWidth)
     1768        zoomArea.right += 1;
     1769    if (zoomArea.Height() < maxZoomHeight)
     1770        zoomArea.bottom += 1;
     1771
    17641772    // Un-Zoom
    17651773
    17661774    if (fPreviousFrame.IsValid()