]> git.pld-linux.org Git - packages/libggi.git/blame - libggi-svga.patch
perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
[packages/libggi.git] / libggi-svga.patch
CommitLineData
973086b7 1diff -Nru libggi.orig/display/svgalib/mode.c libggi/display/svgalib/mode.c
2--- libggi.orig/display/svgalib/mode.c Sat Aug 11 09:01:50 2001
3+++ libggi/display/svgalib/mode.c Mon Aug 13 15:14:58 2001
4@@ -225,7 +225,7 @@
aecb86e5 5 priv->frame_size = tm->virt.x * tm->virt.y * modeinfo->bytesperpixel;
973086b7 6 GGIDPRINT("Setting up DirectBuffers, islinear=%d, frame_size=%d, frames=%d\n",
7 priv->islinear, priv->frame_size, LIBGGI_MODE(vis)->frames);
aecb86e5
JB
8- for (i=0; priv->islinear && (i < LIBGGI_MODE(vis)->frames); i++) {
9+ for (i=0; priv->islinear && (i < tm->frames); i++) {
10 ggi_directbuffer *buf;
11
12 _ggi_db_add_buffer(LIBGGI_APPLIST(vis), _ggi_db_get_new());
973086b7 13@@ -366,7 +366,7 @@
aecb86e5 14 /* Only support frames when we can support linear access
973086b7 15 * and we have enough video memory. */
aecb86e5
JB
16 if (!(vmi->flags & CAPABLE_LINEAR)
17- && (vmi->memory < (vmi->bytesperpixel * tm->virt.x *
18+ || (vmi->memory < (vmi->bytesperpixel * tm->virt.x *
19 tm->virt.y * tm->frames)))
20 {
21 tm->frames = 1;
This page took 0.029948 seconds and 4 git commands to generate.