FFstrbuf: change ffStrbufToUInt16 to more general function ffStrbufToUInt

This commit is contained in:
李通洲
2023-09-26 00:09:56 +08:00
parent a4bc07cba5
commit e4c1ec916b
6 changed files with 9 additions and 9 deletions
@@ -80,9 +80,9 @@ static bool detectWithGetprop(FFDisplayServerResult* ds)
ffStrbufContainC(&buffer, ','))
{
// 1440,3200,560 => width,height,ppi
uint32_t width = ffStrbufToUInt16(&buffer, 0);
uint32_t width = (uint32_t) ffStrbufToUInt(&buffer, 0);
ffStrbufSubstrAfterFirstC(&buffer, ',');
uint32_t height = ffStrbufToUInt16(&buffer, 0);
uint32_t height = (uint32_t) ffStrbufToUInt(&buffer, 0);
return ffdsAppendDisplay(ds,
width,
height,