Home
last modified time | relevance | path

Searched refs:rects (Results 1 – 24 of 24) sorted by relevance

/reactos/base/applications/mspaint/
H A Dtoolsettings.cpp103 INT yCenter = (rects[i].top + rects[i].bottom) / 2; in drawRubber()
133 RECT rects[12]; in drawBrush() local
164 RECT rects[5]; in drawLine() local
190 rects[0] = rects[1] = rects[2] = rects[3] = *prc; in getAirBrushRects()
192 rects[0].right = rects[1].left = prc->left + cx * 3 / 8; in getAirBrushRects()
193 rects[0].bottom = rects[1].bottom = prc->top + cy / 2; in getAirBrushRects()
195 rects[2].top = rects[3].top = prc->top + cy / 2; in getAirBrushRects()
196 rects[2].right = rects[3].left = prc->left + cx * 2 / 8; in getAirBrushRects()
211 RECT rects[4]; in drawAirBrush() local
243 CRect rects[3]; in drawBox() local
[all …]
/reactos/win32ss/gdi/ntgdi/
H A Dregion.c3051 RECTL *rects; in REGION_PtsToRegion() local
3103 ((numRects == 1) || (rects[-1].top != rects->top)) && in REGION_PtsToRegion()
3111 rects++; in REGION_PtsToRegion()
3629 RECT *rects; in NtGdiCreateRoundRectRgn() local
3668 rects = obj->Buffer; in NtGdiCreateRoundRectRgn()
3704 rects[i].left = rects[b - i].left; in NtGdiCreateRoundRectRgn()
3705 rects[i].right = rects[b - i].right; in NtGdiCreateRoundRectRgn()
3707 rects[i].bottom = rects[i].top + 1; in NtGdiCreateRoundRectRgn()
3712 rects[i].bottom = rects[i].top + 1; in NtGdiCreateRoundRectRgn()
3818 RECT* rects; in NtGdiExtCreateRegion() local
[all …]
/reactos/dll/win32/gdiplus/
H A Dregion.c1627 RECT *rects; in GdipGetRegionScansI() local
1637 rects = (RECT*)data->Buffer; in GdipGetRegionScansI()
1643 scans[i].X = rects[i].left; in GdipGetRegionScansI()
1644 scans[i].Y = rects[i].top; in GdipGetRegionScansI()
1645 scans[i].Width = rects[i].right - rects[i].left; in GdipGetRegionScansI()
1646 scans[i].Height = rects[i].bottom - rects[i].top; in GdipGetRegionScansI()
1661 RECT *rects; in GdipGetRegionScans() local
1671 rects = (RECT*)data->Buffer; in GdipGetRegionScans()
1678 scans[i].Y = rects[i].top; in GdipGetRegionScans()
1679 scans[i].Width = rects[i].right - rects[i].left; in GdipGetRegionScans()
[all …]
H A Dmetafile.c1122 corners[0].X = rects[i].X; in METAFILE_FillRectangles()
1124 corners[1].X = rects[i].X + rects[i].Width; in METAFILE_FillRectangles()
1127 corners[2].Y = rects[i].Y + rects[i].Height; in METAFILE_FillRectangles()
1128 corners[3].X = rects[i].X + rects[i].Width; in METAFILE_FillRectangles()
1129 corners[3].Y = rects[i].Y + rects[i].Height; in METAFILE_FillRectangles()
2610 if (rects) in GdipPlayMetafileRecord()
3335 GpRectF *rects = NULL; in GdipPlayMetafileRecord() local
3351 rects = GdipAlloc(draw->Count * sizeof(*rects)); in GdipPlayMetafileRecord()
3352 if (!rects) in GdipPlayMetafileRecord()
3365 rects ? rects : (GpRectF *)draw->RectData.rectF, draw->Count); in GdipPlayMetafileRecord()
[all …]
H A Dgraphicspath.c2354 GpStatus WINGDIPAPI GdipAddPathRectangles(GpPath *path, GDIPCONST GpRectF *rects, INT count) in GdipAddPathRectangles() argument
2360 TRACE("(%p, %p, %d)\n", path, rects, count); in GdipAddPathRectangles()
2363 if(!path || !rects || count == 0) in GdipAddPathRectangles()
2374 …if((retstat = GdipAddPathRectangle(path,rects[i].X,rects[i].Y,rects[i].Width,rects[i].Height)) != … in GdipAddPathRectangles()
2392 GpStatus WINGDIPAPI GdipAddPathRectanglesI(GpPath *path, GDIPCONST GpRect *rects, INT count) in GdipAddPathRectanglesI() argument
2398 TRACE("(%p, %p, %d)\n", path, rects, count); in GdipAddPathRectanglesI()
2400 if(!rects || count == 0) in GdipAddPathRectanglesI()
2409 rectsF[i].X = (REAL)rects[i].X; in GdipAddPathRectanglesI()
2410 rectsF[i].Y = (REAL)rects[i].Y; in GdipAddPathRectanglesI()
2411 rectsF[i].Width = (REAL)rects[i].Width; in GdipAddPathRectanglesI()
[all …]
H A Dgraphics.c471 RECT *rects; in alpha_blend_pixels_hrgn() local
505 rects = (RECT*)rgndata->Buffer; in alpha_blend_pixels_hrgn()
509 stat = alpha_blend_bmp_pixels(graphics, rects[i].left, rects[i].top, in alpha_blend_pixels_hrgn()
510 &src[(rects[i].left - dst_x) * 4 + (rects[i].top - dst_y) * src_stride], in alpha_blend_pixels_hrgn()
511 rects[i].right - rects[i].left, rects[i].bottom - rects[i].top, in alpha_blend_pixels_hrgn()
4164 GDIPCONST GpRectF* rects, INT count) in GdipDrawRectangles() argument
4189 GDIPCONST GpRect* rects, INT count) in GdipDrawRectanglesI() argument
4197 if(!rects || count<=0) in GdipDrawRectanglesI()
4205 rectsF[i].X = (REAL)rects[i].X; in GdipDrawRectanglesI()
4206 rectsF[i].Y = (REAL)rects[i].Y; in GdipDrawRectanglesI()
[all …]
H A Dgdiplus_private.h81 GDIPCONST GpRectF* rects, INT count) DECLSPEC_HIDDEN;
/reactos/dll/directx/wine/ddraw/
H A Dviewport.c652 DWORD rect_count, D3DRECT *rects, DWORD flags) in d3d_viewport_Clear() argument
660 TRACE("iface %p, rect_count %u, rects %p, flags %#x.\n", iface, rect_count, rects, flags); in d3d_viewport_Clear()
662 if (!rects || !rect_count) in d3d_viewport_Clear()
664 WARN("rect_count = %u, rects = %p, ignoring clear\n", rect_count, rects); in d3d_viewport_Clear()
691 hr = IDirect3DDevice7_Clear(&This->active_device->IDirect3DDevice7_iface, rect_count, rects, in d3d_viewport_Clear()
1047 D3DRECT *rects, DWORD flags, DWORD color, D3DVALUE depth, DWORD stencil) in d3d_viewport_Clear2() argument
1055 iface, rect_count, rects, flags, color, depth, stencil); in d3d_viewport_Clear2()
1057 if (!rects || !rect_count) in d3d_viewport_Clear2()
1059 WARN("rect_count = %u, rects = %p, ignoring clear\n", rect_count, rects); in d3d_viewport_Clear2()
1077 rect_count, rects, flags, color, depth, stencil); in d3d_viewport_Clear2()
H A Ddevice.c5252 D3DRECT *rects, DWORD flags, D3DCOLOR color, D3DVALUE z, DWORD stencil) in d3d_device7_Clear() argument
5265 iface, count, rects, flags, color, z, stencil); in d3d_device7_Clear()
5267 if (count && !rects) in d3d_device7_Clear()
5274 hr = wined3d_device_clear(This->wined3d_device, count, (RECT *)rects, flags, &c, z, stencil); in d3d_device7_Clear()
5281 D3DRECT *rects, DWORD flags, D3DCOLOR color, D3DVALUE z, DWORD stencil) in d3d_device7_Clear_FPUSetup() argument
5283 return d3d_device7_Clear(iface, count, rects, flags, color, z, stencil); in d3d_device7_Clear_FPUSetup()
5287 D3DRECT *rects, DWORD flags, D3DCOLOR color, D3DVALUE z, DWORD stencil) in d3d_device7_Clear_FPUPreserve() argument
5293 hr = d3d_device7_Clear(iface, count, rects, flags, color, z, stencil); in d3d_device7_Clear_FPUPreserve()
/reactos/modules/rostests/winetests/gdiplus/
H A Dgraphicspath.c638 GpRectF rects[2]; in test_rect() local
652 rects[0].X = 5.0; in test_rect()
653 rects[0].Y = 5.0; in test_rect()
654 rects[0].Width = 100.0; in test_rect()
655 rects[0].Height = 50.0; in test_rect()
656 rects[1].X = 100.0; in test_rect()
657 rects[1].Y = 50.0; in test_rect()
658 rects[1].Width = 120.0; in test_rect()
659 rects[1].Height = 30.0; in test_rect()
661 status = GdipAddPathRectangles(path, (GDIPCONST GpRectF*)&rects, 2); in test_rect()
H A Dgraphics.c6055 GpRectF rects[2] = {{0,0,10,10}, {10,10,10,10}}; in test_GdipFillRectangles() local
6067 status = GdipFillRectangles(NULL, brush, rects, 2); in test_GdipFillRectangles()
6070 status = GdipFillRectangles(graphics, NULL, rects, 2); in test_GdipFillRectangles()
6076 status = GdipFillRectangles(graphics, brush, rects, 0); in test_GdipFillRectangles()
6079 status = GdipFillRectangles(graphics, brush, rects, -1); in test_GdipFillRectangles()
6082 status = GdipFillRectangles(graphics, brush, rects, 1); in test_GdipFillRectangles()
6085 status = GdipFillRectangles(graphics, brush, rects, 2); in test_GdipFillRectangles()
/reactos/sdk/include/psdk/
H A Dgdiplusgraphics.h555 DrawRectangles(const Pen *pen, const Rect *rects, INT count) in DrawRectangles() argument
557 …SetStatus(DllExports::GdipDrawRectanglesI(nativeGraphics, pen ? getNat(pen) : NULL, rects, count)); in DrawRectangles()
561 DrawRectangles(const Pen *pen, const RectF *rects, INT count) in DrawRectangles() argument
563 … SetStatus(DllExports::GdipDrawRectangles(nativeGraphics, pen ? getNat(pen) : NULL, rects, count)); in DrawRectangles()
922 FillRectangles(const Brush *brush, const Rect *rects, INT count) in FillRectangles() argument
924 …tatus(DllExports::GdipFillRectanglesI(nativeGraphics, brush ? getNat(brush) : NULL, rects, count)); in FillRectangles()
928 FillRectangles(const Brush *brush, const RectF *rects, INT count) in FillRectangles() argument
930 …Status(DllExports::GdipFillRectangles(nativeGraphics, brush ? getNat(brush) : NULL, rects, count)); in FillRectangles()
H A Dgdipluspath.h286 AddRectangles(const Rect *rects, INT count) in AddRectangles() argument
288 return SetStatus(DllExports::GdipAddPathRectanglesI(nativePath, rects, count)); in AddRectangles()
292 AddRectangles(const RectF *rects, INT count) in AddRectangles() argument
294 return SetStatus(DllExports::GdipAddPathRectangles(nativePath, rects, count)); in AddRectangles()
H A Dgdiplusheaders.h1166 GetRegionScans(const Matrix *matrix, Rect *rects, INT *count) const in GetRegionScans() argument
1168 …return SetStatus(DllExports::GdipGetRegionScansI(nativeRegion, rects, count, matrix ? getNat(matri… in GetRegionScans()
1172 GetRegionScans(const Matrix *matrix, RectF *rects, INT *count) const in GetRegionScans() argument
1174 …return SetStatus(DllExports::GdipGetRegionScans(nativeRegion, rects, count, matrix ? getNat(matrix… in GetRegionScans()
H A Dd3d9.h1417 STDMETHOD(Clear)(THIS_ DWORD rect_count, const D3DRECT *rects, DWORD flags, in DECLARE_INTERFACE_()
1805 STDMETHOD(Clear)(THIS_ DWORD rect_count, const D3DRECT *rects, DWORD flags, in DECLARE_INTERFACE_()
H A Dd3d8.h873 STDMETHOD(Clear)(THIS_ DWORD rect_count, const D3DRECT *rects, DWORD flags, D3DCOLOR color, in DECLARE_INTERFACE_()
H A Dd3drmobj.h160 …decl *D3DRMUPDATECALLBACK)(struct IDirect3DRMDevice *device, void *ctx, int count, D3DRECT *rects);
162 int count, D3DRECT *rects);
171 DWORD flags, DWORD rect_count, RECT *rects);
3445 STDMETHOD(Changed)(THIS_ DWORD flags, DWORD rect_count, RECT *rects) PURE; in DECLARE_INTERFACE_()
/reactos/dll/directx/wine/wined3d/
H A Dcs.c112 RECT rects[1]; member
522 … op->rect_count, op->rects, &op->draw_rect, op->flags, &op->color, op->depth, op->stencil); in wined3d_cs_exec_clear()
536 void wined3d_cs_emit_clear(struct wined3d_cs *cs, DWORD rect_count, const RECT *rects, in wined3d_cs_emit_clear() argument
545 op = cs->ops->require_space(cs, FIELD_OFFSET(struct wined3d_cs_clear, rects[rect_count]), in wined3d_cs_emit_clear()
558 memcpy(op->rects, rects, sizeof(*rects) * rect_count); in wined3d_cs_emit_clear()
580 size = FIELD_OFFSET(struct wined3d_cs_clear, rects[1]) + sizeof(struct wined3d_fb_state); in wined3d_cs_emit_clear_rendertarget_view()
582 op->fb = (void *)&op->rects[1]; in wined3d_cs_emit_clear_rendertarget_view()
603 op->rects[0] = *rect; in wined3d_cs_emit_clear_rendertarget_view()
H A Ddevice.c3634 … const RECT *rects, DWORD flags, const struct wined3d_color *color, float depth, DWORD stencil) in wined3d_device_clear() argument
3637 device, rect_count, rects, flags, debug_color(color), depth, stencil); in wined3d_device_clear()
3639 if (!rect_count && rects) in wined3d_device_clear()
3641 WARN("Rects is %p, but rect_count is 0, ignoring clear\n", rects); in wined3d_device_clear()
3665 wined3d_cs_emit_clear(device->cs, rect_count, rects, flags, color, depth, stencil); in wined3d_device_clear()
H A Dwined3d_private.h3003 UINT rect_count, const RECT *rects, const RECT *draw_rect, DWORD flags,
3594 void wined3d_cs_emit_clear(struct wined3d_cs *cs, DWORD rect_count, const RECT *rects,
/reactos/dll/directx/wine/d3drm/
H A Dtexture.c1167 DWORD flags, DWORD rect_count, RECT *rects) in d3drm_texture3_Changed() argument
1169 FIXME("iface %p, flags %#x, rect_count %u, rects %p stub!\n", iface, flags, rect_count, rects); in d3drm_texture3_Changed()
/reactos/dll/directx/wine/d3d8/
H A Ddevice.c1458 const D3DRECT *rects, DWORD flags, D3DCOLOR color, float z, DWORD stencil) in d3d8_device_Clear() argument
1471 iface, rect_count, rects, flags, color, z, stencil); in d3d8_device_Clear()
1473 if (rect_count && !rects) in d3d8_device_Clear()
1480 …hr = wined3d_device_clear(device->wined3d_device, rect_count, (const RECT *)rects, flags, &c, z, s… in d3d8_device_Clear()
/reactos/dll/directx/wine/d3d9/
H A Ddevice.c1945 const D3DRECT *rects, DWORD flags, D3DCOLOR color, float z, DWORD stencil) in d3d9_device_Clear() argument
1958 iface, rect_count, rects, flags, color, z, stencil); in d3d9_device_Clear()
1960 if (rect_count && !rects) in d3d9_device_Clear()
1967 …hr = wined3d_device_clear(device->wined3d_device, rect_count, (const RECT *)rects, flags, &c, z, s… in d3d9_device_Clear()
/reactos/sdk/include/reactos/wine/
H A Dwined3d.h2230 …ned3d_device_clear(struct wined3d_device *device, DWORD rect_count, const RECT *rects, DWORD flags,