[INTERPRETER]

* BUG: Buffered streams now correctly handle interrupted system calls.

[GB.CAIRO]
* BUG: Cairo.Scale() now scales.


git-svn-id: svn://localhost/gambas/trunk@1859 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2009-02-05 13:52:52 +00:00
parent 3207ea9c1f
commit c2e1eb9778
3 changed files with 3 additions and 4 deletions

View File

@ -896,7 +896,7 @@ GB_DESC CairoDesc[] =
GB_STATIC_METHOD("RadialGradient", "CairoPattern", CAIRO_radial_gradient_pattern, "(CX0)f(CY0)f(Radius0)f(CX1)f(CY1)f(Radius1)f(Colors)Float[][];"),
GB_STATIC_METHOD("Translate", NULL, CAIRO_translate, "(TX)f(TY)f"),
GB_STATIC_METHOD("Scale", NULL, CAIRO_translate, "(SX)f(SY)f"),
GB_STATIC_METHOD("Scale", NULL, CAIRO_scale, "(SX)f(SY)f"),
GB_STATIC_METHOD("Rotate", NULL, CAIRO_rotate, "(Angle)f"),
GB_STATIC_PROPERTY("Matrix", "CairoMatrix", CAIRO_matrix),

View File

@ -1163,7 +1163,6 @@ int STREAM_read_direct(int fd, char *buffer, int len)
if (eff_read <= 0 && errno != EINTR)
return TRUE;
}
}
return FALSE;

View File

@ -114,7 +114,7 @@ static int stream_read(STREAM *stream, char *buffer, int len)
errno = 0;
return TRUE;
}
if (ferror(FD))
if (ferror(FD) && errno != EINTR)
return TRUE;
}
}
@ -153,7 +153,7 @@ static int stream_write(STREAM *stream, char *buffer, int len)
if (eff_write < len_write)
{
if (ferror(FD))
if (ferror(FD) && errno != EINTR)
return TRUE;
}