Commit 7168ddd henesy
committed
1 parent 6460353 commit 7168ddd Copy full SHA for 7168ddd
File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ keydb/countersigned
53
53
keydb/signed
54
54
keydb/signerkey
55
55
tmp/*
56
+ *.rej
56
57
57
58
syntax: regexp
58
59
^dis/.*.dis
Original file line number Diff line number Diff line change @@ -340,6 +340,33 @@ copy16to16(Rectangle r)
340
340
}
341
341
}
342
342
343
+ static void
344
+ copy16to16 (Rectangle r )
345
+ {
346
+ int dx , width ;
347
+ u16int * dp , * wp , * edp , * lp ;
348
+
349
+ width = Dx (r );
350
+ dx = Xsize - width ;
351
+ dp = (u16int * )(gscreendata + ((r .min .y * Xsize ) + r .min .x ) * 2 );
352
+ wp = (u16int * )(xscreendata + ((r .min .y * Xsize ) + r .min .x ) * 2 );
353
+ edp = (u16int * )(gscreendata + ((r .max .y * Xsize ) + r .max .x ) * 2 );
354
+
355
+ /* The pixel format should be the same as the underlying X display (see
356
+ the xtruevisual function) unless a different channel format is
357
+ explicitly specified on the command line, so just copy the pixel data
358
+ without any processing. */
359
+
360
+ while (dp < edp ) {
361
+ lp = dp + width ;
362
+ while (dp < lp ){
363
+ * wp ++ = * dp ++ ;
364
+ }
365
+ dp += dx ;
366
+ wp += dx ;
367
+ }
368
+ }
369
+
343
370
static void
344
371
copy8to32 (Rectangle r )
345
372
{
You can’t perform that action at this time.
0 commit comments