mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 07:38:22 +02:00
win32: Copyedit recent comments
This commit is contained in:
parent
d4355ecee2
commit
c6e12d33bf
2 changed files with 6 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue