mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
example: corrected reveresed arguments
This commit is contained in:
parent
912752906c
commit
bc1ad7104d
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2024 the ThorVG project. All rights reserved.
|
||||
* Copyright (c) 2024 - 2025 the ThorVG project. All rights reserved.
|
||||
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -294,7 +294,7 @@ struct SwWindow : Window
|
|||
if (!surface) return;
|
||||
|
||||
//Set the canvas target and draw on it.
|
||||
verify(static_cast<tvg::SwCanvas*>(canvas)->target((uint32_t*)surface->pixels, surface->w, surface->pitch / 4, surface->h, tvg::ColorSpace::ARGB8888));
|
||||
verify(static_cast<tvg::SwCanvas*>(canvas)->target((uint32_t*)surface->pixels, surface->pitch / 4, surface->w, surface->h, tvg::ColorSpace::ARGB8888));
|
||||
}
|
||||
|
||||
void refresh() override
|
||||
|
|
Loading…
Add table
Reference in a new issue