Added Windows solution for use in debugger

This commit is contained in:
Michael Smith
2019-01-15 11:39:07 +01:00
parent 5b572c214c
commit 7783ad744e
3 changed files with 35 additions and 3 deletions

View File

@@ -38,8 +38,8 @@ PluginUpdateAndRender(plugin_offscreen_buffer *Buffer)
float r = float(X) / float(Buffer->Width);
float g = float(Y) / float(Buffer->Height);
float b = 0.2;
int ig = int(255.99 * r);
int ir = int(255.99 * g);
int ir = int(255.99 * r);
int ig = int(255.99 * g);
int ib = int(255.99 * b);
*Pixel++ = (ir << 24) + (ig << 16) + (ib << 8) + 0xFF;