Cleanup: Formatting

This commit is contained in:
Hans Goudey
2024-07-25 15:04:35 -04:00
parent 0b6a7ee1f3
commit debf616e02
2 changed files with 7 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
#include "paint_intern.hh"
#ifdef WITH_POTRACE
#include "potracelib.h"
# include "potracelib.h"
#endif
namespace blender::bke::greasepencil {

View File

@@ -48,7 +48,7 @@ static int to_potrace(const TurnPolicy turn_policy)
Bitmap *create_bitmap(const int2 &size)
{
#ifdef WITH_POTRACE
# ifdef WITH_POTRACE
constexpr int BM_WORDSIZE = int(sizeof(potrace_word));
constexpr int BM_WORDBITS = 8 * BM_WORDSIZE;
@@ -66,22 +66,22 @@ Bitmap *create_bitmap(const int2 &size)
bm->map = static_cast<potrace_word *>(MEM_mallocN(size.y * dy * sizeof(potrace_word), __func__));
return bm;
#else
# else
UNUSED_VARS(size);
return nullptr;
#endif
# endif
}
void free_bitmap(Bitmap *bm)
{
#ifdef WITH_POTRACE
# ifdef WITH_POTRACE
if (bm != nullptr) {
MEM_freeN(bm->map);
}
MEM_SAFE_FREE(bm);
#else
# else
UNUSED_VARS(bm);
#endif
# endif
}
ImBuf *bitmap_to_image(const Bitmap &bm)