mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 13:12:39 +01:00
[internal] - remove redundant cast byte to byte
This commit is contained in:
parent
5ef9a2f326
commit
919ef34555
@ -146,10 +146,10 @@ namespace Nikse.SubtitleEdit.Core
|
||||
private static void WriteColor(Stream stream, Color c)
|
||||
{
|
||||
byte[] buffer = new byte[4];
|
||||
buffer[0] = (byte)c.A;
|
||||
buffer[1] = (byte)c.R;
|
||||
buffer[2] = (byte)c.G;
|
||||
buffer[3] = (byte)c.B;
|
||||
buffer[0] = c.A;
|
||||
buffer[1] = c.R;
|
||||
buffer[2] = c.G;
|
||||
buffer[3] = c.B;
|
||||
stream.Write(buffer, 0, buffer.Length);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user