Skip to content

Commit 3b06ed7

Browse files
committed
clang format fixes
1 parent f132177 commit 3b06ed7

5 files changed

Lines changed: 548 additions & 244 deletions

File tree

core/render2d/cairo_render_backend.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,14 @@ namespace indigo
114114
void setSourceSurface(float x, float y) override;
115115

116116
// Access raw cairo objects (needed during transition)
117-
cairo_t* getCr() { return _cr; }
118-
cairo_surface_t* getSurface() { return _surface; }
117+
cairo_t* getCr()
118+
{
119+
return _cr;
120+
}
121+
cairo_surface_t* getSurface()
122+
{
123+
return _surface;
124+
}
119125

120126
private:
121127
static cairo_status_t _writer(void* closure, const unsigned char* data, unsigned int length);

core/render2d/src/cairo_render_backend.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,7 @@ void CairoRenderBackend::pathExtents(double& x1, double& y1, double& x2, double&
318318
void CairoRenderBackend::selectFontFace(const char* family, bool italic, bool bold)
319319
{
320320
std::lock_guard<std::mutex> lock(_mutex);
321-
cairo_select_font_face(_cr, family, italic ? CAIRO_FONT_SLANT_ITALIC : CAIRO_FONT_SLANT_NORMAL,
322-
bold ? CAIRO_FONT_WEIGHT_BOLD : CAIRO_FONT_WEIGHT_NORMAL);
321+
cairo_select_font_face(_cr, family, italic ? CAIRO_FONT_SLANT_ITALIC : CAIRO_FONT_SLANT_NORMAL, bold ? CAIRO_FONT_WEIGHT_BOLD : CAIRO_FONT_WEIGHT_NORMAL);
323322
}
324323

325324
void CairoRenderBackend::setFontSize(float size)

0 commit comments

Comments
 (0)