example: corrected reveresed arguments

This commit is contained in:
Hermet Park 2025-01-13 12:12:31 +09:00
parent 912752906c
commit bc1ad7104d

View file

@ -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