--- xglk_pict.c.orig Wed Aug 15 21:22:19 2001
+++ xglk_pict.c Wed Aug 15 23:24:07 2001
@@ -308 +308 @@
- destrowbytes = (width * destdepth + 7) / 8;
+ destrowbytes = (width * ((destdepth==24)?32:destdepth) + 7) / 8;
@@ -409 +409 @@
- destrowbytes = (width * destdepth + 7) / 8;
+ destrowbytes = (width * ((destdepth==24)?32:destdepth) + 7) / 8;
@@ -715 +715 @@
- destptr += 3;
+ destptr += 4;
@@ -730 +730 @@
- destptr += 3;
+ destptr += 4;
@@ -899 +899 @@
- destrowbytes = (destwidth * depth + 7) / 8;
+ destrowbytes = (destwidth * ((depth==24)?32:depth) + 7) / 8;
@@ -941 +941 @@
- else if (depth == 32) {
+ else if ((depth == 32) || (depth == 24)) {
@@ -986 +986 @@
- int val = destwidth * depth / 8;
+ int val = destwidth * ((depth==24)?32:depth) / 8;