mirror of
https://github.com/hyprwm/hyprgraphics.git
synced 2026-05-06 04:28:32 +02:00
Merge dc5a6ce409 into 7d63c04b4a
This commit is contained in:
commit
b549359b60
1 changed files with 0 additions and 3 deletions
|
|
@ -17,9 +17,6 @@ std::expected<cairo_surface_t*, std::string> JPEG::createSurfaceFromJPEG(const s
|
|||
if (!std::filesystem::exists(path))
|
||||
return std::unexpected("loading jpeg: file doesn't exist");
|
||||
|
||||
if (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__)
|
||||
return std::unexpected("loading jpeg: cannot load on big endian");
|
||||
|
||||
std::ifstream file(path, std::ios::binary | std::ios::ate);
|
||||
file.exceptions(std::ifstream::failbit | std::ifstream::badbit | std::ifstream::eofbit);
|
||||
std::vector<uint8_t> bytes(file.tellg());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue