summaryrefslogtreecommitdiff
path: root/src/cam/sdl_texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/sdl_texture.h')
-rw-r--r--src/cam/sdl_texture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cam/sdl_texture.h b/src/cam/sdl_texture.h
index e4d3fb2b..6ccd85ea 100644
--- a/src/cam/sdl_texture.h
+++ b/src/cam/sdl_texture.h
@@ -16,7 +16,7 @@
class SDLTexture
{
public:
- SDLTexture(const SDL_Rect &rect, uint32_t pixelFormat, const int pitch);
+ SDLTexture(const SDL_Rect &rect, uint32_t pixelFormat, const int stride);
virtual ~SDLTexture();
int create(SDL_Renderer *renderer);
virtual void update(const std::vector<libcamera::Span<const uint8_t>> &data) = 0;
@@ -26,5 +26,5 @@ protected:
SDL_Texture *ptr_;
const SDL_Rect rect_;
const uint32_t pixelFormat_;
- const int pitch_;
+ const int stride_;
};