Skip to content

Commit

Permalink
Resolution: the string retrieved from sysfs is "H,V". It has to be "HxV"
Browse files Browse the repository at this point in the history
  • Loading branch information
jackburton79 committed Apr 18, 2018
1 parent 03569c9 commit 6c912bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ Machine::_GetGraphicsCardInfo()
videoInfo.name = trimmed(ProcReader("/sys/class/graphics/fb0/device/oem_product_name").ReadLine());
videoInfo.vendor = trimmed(ProcReader("/sys/class/graphics/fb0/device/oem_vendor").ReadLine());
videoInfo.resolution = trimmed(ProcReader("/sys/class/graphics/fb0/virtual_size").ReadLine());
std::replace(videoInfo.resolution.begin(), videoInfo.resolution.end(), ',', 'x');

fVideoInfo.push_back(videoInfo);
} catch (...) {
return false;
Expand Down

0 comments on commit 6c912bb

Please sign in to comment.