mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix most warnings, re-fix MSVC compile error
This commit is contained in:
parent
979ca23f1e
commit
d31f07bd4b
10 changed files with 22 additions and 19 deletions
|
@ -208,11 +208,12 @@ inline void writeARGB8(u8 *data, video::SColor p)
|
|||
|
||||
inline video::SColor readARGB8(const u8 *data)
|
||||
{
|
||||
video::SColor p;
|
||||
p.setAlpha(readU8(&data[0]));
|
||||
p.setRed(readU8(&data[1]));
|
||||
p.setGreen(readU8(&data[2]));
|
||||
p.setBlue(readU8(&data[3]));
|
||||
video::SColor p(
|
||||
readU8(&data[0]),
|
||||
readU8(&data[1]),
|
||||
readU8(&data[2]),
|
||||
readU8(&data[3])
|
||||
);
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue