uint16 should be plenty for width and height, so width*height will not overflow an int32. Might fix a codeQL warning.

pull/3669/merge
Isaac Connor 2023-02-23 17:16:28 -05:00
parent a62f4b2e77
commit 24313b1a59
1 changed files with 2 additions and 2 deletions

View File

@ -39,9 +39,9 @@ protected:
const Monitor *monitor;
SourceType type;
unsigned int width;
uint16_t width;
uint16_t height;
unsigned int linesize;
unsigned int height;
unsigned int colours;
unsigned int subpixelorder;
unsigned int pixels;