1. 02 May, 2019 1 commit
    • Antonio Borneo's avatar
      log: remove "%m" from format strings by using strerror(errno) · 39578636
      Antonio Borneo authored
      The printf() format specifier "%m" is a glibc extension to print
      the string returned by strerror(errno). While supported by other
      libraries (e.g. uClibc and musl), it is not widely portable.
      
      In Weston code the format string is often passed to a logging
      function that calls other syscalls before the conversion of "%m"
      takes place. If one of such syscall modifies the value in errno,
      the conversion of "%m" will incorrectly report the error string
      corresponding to the new value of errno.
      
      Remove all the occurrences of the specifier "%m" in Weston code
      by using directly the string returned by strerror(errno).
      While there, fix some minor indentation issue.
      Signed-off-by: Antonio Borneo's avatarAntonio Borneo <borneo.antonio@gmail.com>
      39578636
  2. 16 Nov, 2016 1 commit
    • Derek Foreman's avatar
      clients: Fix weston-scaler source-only mode to use integer width and height · c3ded660
      Derek Foreman authored
      If only the source of a viewport is set, the width and height must
      be integer or the protocol mandates that the compositor generate an
      error.  This is because using only the source is a crop, and the
      width and height become the surface size - all surface sizes must
      be integer.
      
      Weston was fixed to generate this error in bb32ccc0, however the
      test app continued to use fractional co-ordinates when run as
      weston-scaler -s  (which only sets the viewport source)
      
      This leaves fractional width/height for the other cases, but uses
      integer for the crop-only mode.  The descriptions in the help text
      are still accurate with this change, but weston-scaler -s no longer
      exits with an error.
      Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
      Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      c3ded660
  3. 26 Jul, 2016 1 commit
  4. 09 Jun, 2016 1 commit
  5. 05 Apr, 2016 1 commit
  6. 15 Jun, 2015 1 commit
  7. 19 Aug, 2014 1 commit
  8. 24 Jun, 2014 1 commit
  9. 07 Apr, 2014 1 commit
    • Andrew Wedgbury's avatar
      Make sure config.h is included before any system headers · 9cd661e7
      Andrew Wedgbury authored
      There was an issue recently in screen-share.c where config.h was not
      being included, resulting in the wrong definition for off_t being used on
      32 bit systems. I checked and I don't think this problem is happening
      elsewhere, but to help avoid this sort of problem in the future, I went
      through and made sure that config.h is included first whenever system
      headers are included.
      
      The config.h header should be included before any system headers, failing
      to do this can result in the wrong type sizes being defined on certain
      systems, e.g. off_t from sys/types.h
      Signed-off-by: default avatarAndrew Wedgbury <andrew.wedgbury@realvnc.com>
      9cd661e7
  10. 01 Apr, 2014 1 commit
  11. 09 Jan, 2014 1 commit
  12. 17 Dec, 2013 1 commit
    • Jonny Lamb's avatar
      clients: add scaler test app · 92d90f22
      Jonny Lamb authored
      This client tests the wl_scaler and wl_surface_scaler protocol
      extensions by cropping and then scaling a surface to ensure it is
      rendered correctly. More details in comments in the code.
      92d90f22