1. 07 2月, 2018 2 次提交
  2. 06 2月, 2018 2 次提交
    • R
      Parse XPM without SDL_image · 71c2bfdd
      Romain Vimont 提交于
      We encounter some problems with SDL2_image on MSYS2 (Windows), so
      implement our own XPM parsing which does not depend on SDL_image.
      
      The input XPM is considered safe (it's in our source repo), so do not
      check XPM format errors. This implies that read_xpm() is not safe to
      call on any unsafe input.
      
      Although less straightforward, use SDL_CreateRGBSurfaceFrom() instead of
      SDL_CreateRGBSurfaceWithFormatFrom() because it is available with SDL
      versions older than 2.0.5.
      71c2bfdd
    • R
      Revert "Fix Makefile for Windows" · 920bafce
      Romain Vimont 提交于
      In MSYS2 on Windows, the behavior is the same as on Linux.
      
      On systems where the behavior is not the same, just customize the GRADLE
      variable:
      
          GRADLE=gradlew make release
      
      This reverts commit de192cab.
      920bafce
  3. 05 2月, 2018 3 次提交
  4. 04 2月, 2018 2 次提交
    • R
      Fix scrcpy() return value · 5eb91a4c
      Romain Vimont 提交于
      The scrcpy() function returns a SDL_bool to indicate its success, but
      was initialized to 0 (SDL_FALSE) instead of SDL_TRUE.
      5eb91a4c
    • R
      Add "make run" · 82ee5584
      Romain Vimont 提交于
      To run the app during development, add a recipe "run" to the Makefile.
      82ee5584
  5. 03 2月, 2018 1 次提交
  6. 02 2月, 2018 22 次提交
  7. 01 2月, 2018 7 次提交
    • R
      Use long command-line options · 213b721f
      Romain Vimont 提交于
      In addition to the short form (e.g. "-p"), add the long form ("--port").
      213b721f
    • R
      Indent switch blocks content · 60b2f2ca
      Romain Vimont 提交于
      For readability, indent "case" in switch blocks.
      
      Replace:
      
          switch (x) {
          case 1:
              // ...
          case 2:
              // ...
          case 3: { // a local scope block
              int i = 42;
              // ...
          }
          }
      
      By:
      
          switch (x) {
              case 1:
                  // ...
              case 2:
                  // ...
              case 3: { // a local scope block
                  int i = 42;
                  // ...
              }
          }
      60b2f2ca
    • R
      Use ADB environment variable · 628f88ab
      Romain Vimont 提交于
      Use the ADB environment variable to provide a custom adb path.
      628f88ab
    • R
      Encode video using MediaCodec API · 865ebb38
      Romain Vimont 提交于
      Replace screenrecord execution by manual screen encoding using the
      MediaCodec API.
      
      The "screenrecord" solution had several drawbacks:
       - screenrecord output is buffered, so tiny frames may not be accessible
         immediately;
       - it did not output a frame until the surface changed, leading to a
         black screen on start;
       - it is limited to 3 minutes recording, so it needed to be restarted;
       - screenrecord added black borders in the video when the requested
         dimensions did not preserve aspect-ratio exactly (sometimes
         unavoidable since video dimensions must be multiple of 8);
       - rotation handling was hacky (killing the process and starting a new
         one).
      
      Handling the encoding manually allows to solve all these problems.
      865ebb38
    • R
      Register uncaught exception handler · 7ed33491
      Romain Vimont 提交于
      Never miss an exception by using an uncaught exception handler.
      7ed33491
    • R
      Extract argument parsing · 8c4a454d
      Romain Vimont 提交于
      Move argument parsing to a separate method.
      8c4a454d
    • R
      Use the Point class from the framework · 73831a08
      Romain Vimont 提交于
      Replace our custom Point class by android.graphics.Point.
      73831a08
  8. 30 1月, 2018 1 次提交