mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-28 17:15:57 +00:00
svg2png: Clean up code
Modify the code to fit coding style
This commit is contained in:
parent
a459a53bc7
commit
b17f3cc9a4
1 changed files with 8 additions and 9 deletions
|
@ -29,8 +29,8 @@
|
|||
using namespace std;
|
||||
|
||||
|
||||
struct PngBuilder {
|
||||
|
||||
struct PngBuilder
|
||||
{
|
||||
void build(const std::string &fileName , const uint32_t width, const uint32_t height, uint32_t *buffer)
|
||||
{
|
||||
std::vector<unsigned char> image;
|
||||
|
@ -63,7 +63,6 @@ struct App
|
|||
|
||||
//Initialize ThorVG Engine
|
||||
if (tvg::Initializer::init(tvgEngine, threads) == tvg::Result::Success) {
|
||||
|
||||
//Create a Canvas
|
||||
auto canvas = tvg::SwCanvas::gen();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue