Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Jul 5, 2023
1 parent c6fd35e commit 7a3ab02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/sixel-canvas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@

#include "sixel-canvas.h"

#include "thread-pool.h"
#include <sixel.h>

#include "thread-pool.h"

// Terminals might have different understanding where the curosr is placed
// after an image is sent. This is a somewhat undocumented feature of xterm.
// This will make sure that in particular images shown in columns will align
Expand All @@ -30,7 +31,7 @@ namespace timg {

// Char needs to be non-const to be compatible sixel-callback.
static int WriteToOutBuffer(char *data, int size, void *outbuf_param) {
OutBuffer *outbuffer = (OutBuffer*) outbuf_param;
OutBuffer *outbuffer = (OutBuffer *)outbuf_param;
// TODO realloc
memcpy(outbuffer->data + outbuffer->size, data, size);
outbuffer->size += size;
Expand Down
4 changes: 2 additions & 2 deletions src/timg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "timg-version.h"
#include "unicode-block-canvas.h"
#ifdef WITH_TIMG_SIXEL
#include "sixel-canvas.h"
# include "sixel-canvas.h"
#endif

#ifdef WITH_TIMG_TERMINAL_QUERY
Expand Down Expand Up @@ -392,7 +392,7 @@ int main(int argc, char *argv[]) {
return p == Pixelation::kKittyGraphics ||
p == Pixelation::kiTerm2Graphics
#ifdef WITH_TIMG_SIXEL
|| p == Pixelation::kSixelGraphics
|| p == Pixelation::kSixelGraphics
#endif
;
};
Expand Down

0 comments on commit 7a3ab02

Please sign in to comment.