win32: Copyedit recent comments

This commit is contained in:
Bryce Harrington 2018-05-31 18:31:12 -07:00
parent d4355ecee2
commit c6e12d33bf
2 changed files with 6 additions and 4 deletions

View file

@ -166,9 +166,10 @@ _cairo_win32_flags_for_dc (HDC dc, cairo_format_t format)
if (!is_display && GetDeviceCaps(dc, SHADEBLENDCAPS) != SB_NONE)
flags |= CAIRO_WIN32_SURFACE_CAN_ALPHABLEND;
/* ARGB32 available operations is a strict subset of RGB24 available
* operations. It's because the same gdi functions can be used but most
* of them always reset alpha channel to 0 which is bad for ARGB32.
/* ARGB32 available operations are a strict subset of RGB24
* available operations. This is because the same GDI functions
* can be used but most of them always reset alpha channel to 0
* which is bad for ARGB32.
*/
if (format == CAIRO_FORMAT_RGB24)
{

View file

@ -239,7 +239,8 @@ copy_boxes (cairo_win32_display_surface_t *dst,
if (src->format != dst->win32.format &&
!(src->format == CAIRO_FORMAT_ARGB32 && dst->win32.format == CAIRO_FORMAT_RGB24))
{
/* forbid copy different surfaces unless it is from argb32 to rgb (alpha-drop) */
/* forbid copy different surfaces unless it is from argb32 to
* rgb (dropping alpha) */
return CAIRO_INT_STATUS_UNSUPPORTED;
}
cb.dst = dst->win32.dc;