Cleanup: Formatting
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
#include "paint_intern.hh"
|
||||
|
||||
#ifdef WITH_POTRACE
|
||||
#include "potracelib.h"
|
||||
# include "potracelib.h"
|
||||
#endif
|
||||
|
||||
namespace blender::bke::greasepencil {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user