Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test to see other values for pixels

  • Loading branch information...
commit 36c35116de7762308f3a484c63488c2a16140931 1 parent 45b1fd6
@kthakore kthakore authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 t/sdlx_surface.t
View
4 t/sdlx_surface.t
@@ -68,6 +68,10 @@ foreach my $a (@surfs) {
is( $surfs[0]->[1][2], 0, 'Checking source pixel is 0' );
is( $surfs[1]->[1][2], 0, 'Checking dest pixel is 0' );
+$surfs[0]->[4][4] = [255,255,0,255];
+
+is( $surfs[0]->[4][4] , 0xFFFF00FF, "Surface can set pixel with other color values");
+
$surfs[0]->[1][2] = 0x00FF00FF;
is( $surfs[0]->[1][2], 0x00FF00FF, 'Checking that source pixel got written' );
Please sign in to comment.
Something went wrong with that request. Please try again.