DXGL r466 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r465‎ | r466 | r467 >
Date:00:46, 14 July 2014
Author:admin
Status:new
Tags:
Comment:
Add NOTSRCINVERT raster operation.
Modified paths:
  • /ddraw/ShaderGen2D.cpp (modified) (history)
  • /dxgltest/surfacegen.cpp (modified) (history)

Diff [purge]

Index: ddraw/ShaderGen2D.cpp
@@ -117,11 +117,11 @@
118118
119119 const DWORD supported_rops[8] = {
120120 0x00000001,
 121+ 0x00080000,
121122 0x00000000,
122123 0x00000000,
123124 0x00000000,
124125 0x00000000,
125 - 0x00000000,
126126 0x00001000,
127127 0x80000000
128128 };
@@ -128,11 +128,11 @@
129129
130130 const DWORD supported_rops_gl2[8] = {
131131 0x00000001,
 132+ 0x00080000,
132133 0x00000000,
133134 0x00000000,
134135 0x00000000,
135136 0x00000000,
136 - 0x00000000,
137137 0x00001000,
138138 0x80000000
139139 };
@@ -247,6 +247,7 @@
248248 "",//30
249249 "",
250250 "",
 251+"pixel = pixel ^ ivec4(255);",//33 NOTSRCCOPY
251252 "",
252253 "",
253254 "",
@@ -258,7 +259,6 @@
259260 "",
260261 "",
261262 "",
262 -"",
263263 "",//3F
264264 "",//40
265265 "",
@@ -506,6 +506,7 @@
507507 "",//30
508508 "",
509509 "",
 510+"pixel = ivec4(255) - pixel;",
510511 "",
511512 "",
512513 "",
@@ -517,7 +518,6 @@
518519 "",
519520 "",
520521 "",
521 -"",
522522 "",//3F
523523 "",//40
524524 "",
Index: dxgltest/surfacegen.cpp
@@ -1115,7 +1115,7 @@
11161116 back->GetDC(&hdcblt);
11171117 SetBkColor(hdcblt, RGB(0, 0, 255));
11181118 SetTextColor(hdcblt, RGB(255, 255, 255));
1119 - TextOut(hdcblt, 0, 0, _T("Screen 0: GDI Blt"), 18);
 1119+ TextOut(hdcblt, 0, 0, _T("Screen 1: GDI Blt"), 18);
11201120 back->ReleaseDC(hdcblt);
11211121 back->BltFast(0, 16, sprites[1].surface, NULL, DDBLTFAST_WAIT);
11221122 back->Release();