1. 23 Dec, 2020 4 commits
  2. 22 Dec, 2020 5 commits
  3. 01 Dec, 2020 1 commit
  4. 18 Nov, 2020 2 commits
  5. 17 Nov, 2020 2 commits
  6. 13 Nov, 2020 4 commits
  7. 12 Nov, 2020 1 commit
  8. 11 Nov, 2020 4 commits
  9. 07 Nov, 2020 2 commits
  10. 06 Nov, 2020 3 commits
  11. 05 Nov, 2020 2 commits
  12. 04 Nov, 2020 2 commits
  13. 02 Nov, 2020 2 commits
  14. 31 Oct, 2020 1 commit
  15. 29 Oct, 2020 1 commit
  16. 28 Oct, 2020 3 commits
    • Alexei Podtelezhnikov's avatar
    • Alexei Podtelezhnikov's avatar
      [graph] Let the driver set convenient depth. · 69447701
      Alexei Podtelezhnikov authored
      Let the driver change `gr_pixel_mode_none' to whatever depth is
      convenient and make that the default.  You can still force an
      alternative depth from the command line.
      
      * graph/batch/grbatch.c (gr_batch_surface_init): Default to rgb24.
      * graph/win32/grwin32.c (gr_win32_surface_init): Default to rgb32.
      * graph/x11/grx11.c (gr_x11_surface_init): Match the visual depth.
      
      * graph/graph.h (grNewSurface): Document `gr_pixel_mode_none' request.
      * src/ftcommon.c (FTDemo_Display_New): Use `gr_pixel_mode_none'.
      69447701
    • Alexei Podtelezhnikov's avatar
      [graph/x11] Zero-copy 15/16/32-bit modes. · 0893cd67
      Alexei Podtelezhnikov authored
      We opportunistically rely on XPutImage that can perform minimal
      conversions if ZPixmap matches depth and bits_per_pixel.  We check if
      the requested 15/16/32-bit mode matches the visual format and send
      the data as is.
      
      * graph/x11/grx11.c (gr_x11_surface_init): Handle 15/16/32-bit modes.
      (gr_x11_surface_resize): Ditto.
      (gr_x11_surface_done): Unlink the data before `XDestroyImage'.
      (gr_x11_surface_refresh_rect): Check if conversion is requested.
      0893cd67
  17. 27 Oct, 2020 1 commit
    • Alexei Podtelezhnikov's avatar
      [graph/win32] Zero-copy 15/16/32-bit modes. · 61a878c1
      Alexei Podtelezhnikov authored
      We can use the data in 15/16/32-bit formats directly without copying
      into a shadow buffer. It is only 24-bit mode that needs conversion
      rgb24 -> bgr24, back to little endian order typical for Windows.
      
      * graph/win32/grwin32.c (grWin32Surface): s/bgrBitmap/shadow_bitmap/.
      (gr_win32_surface_{init,resize,refresh_rectangle,done}): Handle it
      conditionally for rgb24 only, and link the data otherwise.
      (Message_Process): Updated.
      61a878c1