Home
last modified time | relevance | path

Searched refs:hpal (Results 1 – 25 of 47) sorted by relevance

12

/reactos/dll/win32/msvfw32/
H A Ddrawdib.c138 whdd->hpal = 0; /* Do not free this */ in DrawDibEnd()
292 whdd->hpal = 0; in DrawDibBegin()
398 if (!(wFlags & DDF_DONTDRAW) && whdd->hpal) in DrawDibDraw()
401 SelectPalette(hdc, whdd->hpal, TRUE); in DrawDibDraw()
403 SelectPalette(hdc, whdd->hpal, FALSE); in DrawDibDraw()
445 TRACE("(%p, %p)\n", hdd, hpal); in DrawDibSetPalette()
450 whdd->hpal = hpal; in DrawDibSetPalette()
454 SelectPalette(whdd->hdc, hpal, 0); in DrawDibSetPalette()
482 return whdd->hpal; in DrawDibGetPalette()
504 if (!whdd->hpal) in DrawDibRealize()
[all …]
H A Dmsvideo_main.c1185 HPALETTE hpal, /* [in] palette to draw with */ in ICDrawBegin() argument
1204 hic, dwFlags, hpal, hwnd, hdc, xDst, yDst, dxDst, dyDst, in ICDrawBegin()
1208 icdb.hpal = hpal; in ICDrawBegin()
/reactos/win32ss/gdi/gdi32/objects/
H A Dpalette.c44 AnimatePalette(HPALETTE hpal, in AnimatePalette() argument
49 return NtGdiDoPalette(hpal, iStartIndex, cEntries, (PALETTEENTRY*)ppe, GdiPalAnimate, TRUE); in AnimatePalette()
64 GetPaletteEntries(HPALETTE hpal, in GetPaletteEntries() argument
69 return NtGdiDoPalette(hpal, iStartIndex, cEntries, ppe, GdiPalGetEntries, FALSE); in GetPaletteEntries()
74 SetPaletteEntries(HPALETTE hpal, in SetPaletteEntries() argument
79 return NtGdiDoPalette(hpal, iStartIndex, cEntries, (PALETTEENTRY*)ppe, GdiPalSetEntries, TRUE); in SetPaletteEntries()
H A Ddc.c1314 HPALETTE hpal,
1321 HPALETTE hpal, in SelectPalette() argument
1328 return (HPALETTE)((ULONG_PTR)METADC_SelectPalette(hdc, hpal)); in SelectPalette()
1338 if ( pLDC->iType == LDC_EMFLDC && !(EMFDC_SelectPalette(pLDC, hpal)) ) in SelectPalette()
1344 return NtUserSelectPalette(hdc, hpal, bForceBackground); in SelectPalette()
/reactos/win32ss/gdi/ntgdi/
H A Dpalette.c384 HPALETTE hpal; in EngCreatePalette() local
390 if (!hpal) in EngCreatePalette()
398 return hpal; in EngCreatePalette()
452 HPALETTE hpal = NULL; in GreCreatePaletteInternal() local
469 return hpal; in GreCreatePaletteInternal()
513 return hpal; in NtGdiCreatePaletteInternal()
590 return hpal; in NtGdiCreateHalftonePalette()
596 HPALETTE hpal, in NtGdiResizePalette() argument
709 HPALETTE hpal, in NtGdiGetNearestPaletteIndex() argument
851 HPALETTE hpal, in IntGetPaletteEntries() argument
[all …]
H A Ddcobjs.c201 HPALETTE hpal, in GdiSelectPalette() argument
216 ppal = PALETTE_ShareLockPalette(hpal); in GdiSelectPalette()
231 oldPal = pdc->dclevel.hpal; in GdiSelectPalette()
232 pdc->dclevel.hpal = hpal; in GdiSelectPalette()
662 SelObject = pdc->dclevel.hpal; in NtGdiGetDCObject()
H A Dpalette.h57 #define PALETTE_ShareLockPalette(hpal) \ argument
58 ((PPALETTE)GDIOBJ_ShareLockObj((HGDIOBJ)hpal, GDI_OBJECT_TYPE_PALETTE))
H A Ddcstate.c39 pdcDst->dclevel.hpal = pdcSrc->dclevel.hpal; in DC_vCopyState()
H A Ddc.h51 HPALETTE hpal; member
161 _In_ HPALETTE hpal,
H A Dintgdi.h122 IntGetPaletteEntries(HPALETTE hpal,
H A Ddibobj.c881 PPALETTE pDcPal = PALETTE_ShareLockPalette(pDC->dclevel.hpal); in GreGetDIBitsInternal()
2199 HPALETTE hpal; in DIB_MapPaletteColors() local
2228 hpal = ppalNew->BaseObject.hHmgr; in DIB_MapPaletteColors()
2231 return hpal; in DIB_MapPaletteColors()
/reactos/modules/rostests/winetests/gdi32/
H A Dpalette.c51 HPALETTE hpal, hpalOld; in test_DIB_PAL_COLORS() local
59 hpal = CreatePalette( logpalette ); in test_DIB_PAL_COLORS()
60 hpalOld = SelectPalette( memhdc, hpal, FALSE ); in test_DIB_PAL_COLORS()
115 DeleteObject( hpal ); in test_DIB_PAL_COLORS()
126 HPALETTE hpal; in test_palette_entries() local
135 hpal = CreatePalette( logpalette ); in test_palette_entries()
138 SetPaletteEntries(hpal, 0, 1, &palEntry); in test_palette_entries()
141 res = GetPaletteEntries(hpal, 0, 1, &getEntryResult); in test_palette_entries()
H A Dgdiobj.c202 HPALETTE hpal; in test_GetCurrentObject() local
232 hpal = CreateHalftonePalette(hdc); in test_GetCurrentObject()
233 assert(hpal != 0); in test_GetCurrentObject()
234 SelectPalette(hdc, hpal, FALSE); in test_GetCurrentObject()
236 ok(hobj == hpal, "OBJ_PAL is wrong: %p\n", hobj); in test_GetCurrentObject()
H A Ddib.c1551 HPALETTE hpal, old_hpal; in draw_graphics() local
2643 hpal = CreatePalette( pal ); in draw_graphics()
2644 old_hpal = SelectPalette( hdc, hpal, FALSE ); in draw_graphics()
2648 SetPaletteEntries( hpal, 0, 40, entries + 40 ); in draw_graphics()
2656 SetPaletteEntries( hpal, 0, 40, entries ); in draw_graphics()
2665 SetPaletteEntries( hpal, 0, 40, entries + 40 ); in draw_graphics()
2672 DeleteObject( hpal ); in draw_graphics()
/reactos/dll/win32/wing32/
H A Dwing32.c103 HPALETTE hpal; in WinGCreateHalftonePalette() local
106 hpal = CreateHalftonePalette( hdc ); in WinGCreateHalftonePalette()
109 return hpal; in WinGCreateHalftonePalette()
/reactos/modules/rostests/apitests/gdi32/
H A DSetPixel.c72 HPALETTE hpal, hpalOld; in Test_SetPixel_PAL() local
139 hpal = CreatePalette((LOGPALETTE*)&gpal); in Test_SetPixel_PAL()
140 hpalOld = SelectPalette(hdc, hpal, FALSE); in Test_SetPixel_PAL()
/reactos/win32ss/gdi/gdi32/misc/
H A Dhistoric.c120 GdiConvertPalette(HPALETTE hpal) in GdiConvertPalette() argument
123 return hpal; in GdiConvertPalette()
/reactos/dll/win32/oleaut32/
H A Doleaut.c694 HPALETTE hpal, in OleTranslateColor() argument
700 TRACE("(%08x, %p, %p)\n", clr, hpal, pColorRef); in OleTranslateColor()
712 if (hpal != 0) in OleTranslateColor()
724 if (hpal != 0) in OleTranslateColor()
730 if (GetPaletteEntries(hpal, LOWORD(clr), 1, &pe) == 0) in OleTranslateColor()
H A Dolepicture.c569 *phandle = HandleToUlong(This->desc.u.bmp.hpal); in OLEPictureImpl_get_hPal()
770 OLE_HANDLE hpal) in OLEPictureImpl_set_hPal() argument
774 TRACE("(%p)->(%08x)\n", This, hpal); in OLEPictureImpl_set_hPal()
778 This->desc.u.bmp.hpal = ULongToHandle(hpal); in OLEPictureImpl_set_hPal()
/reactos/modules/rostests/winetests/windowscodecs/
H A Dbitmap.c819 HPALETTE hpal; in test_CreateBitmapFromHBITMAP() local
864 hpal = CreatePalette(pal); in test_CreateBitmapFromHBITMAP()
865 ok(hpal != 0, "CreatePalette failed\n"); in test_CreateBitmapFromHBITMAP()
868 …hr = IWICImagingFactory_CreateBitmapFromHBITMAP(factory, hbmp, hpal, WICBitmapIgnoreAlpha, &bitmap… in test_CreateBitmapFromHBITMAP()
899 DeleteObject(hpal); in test_CreateBitmapFromHBITMAP()
906 hpal = CreatePalette(pal); in test_CreateBitmapFromHBITMAP()
907 ok(hpal != 0, "CreatePalette failed\n"); in test_CreateBitmapFromHBITMAP()
910 …hr = IWICImagingFactory_CreateBitmapFromHBITMAP(factory, hbmp, hpal, WICBitmapIgnoreAlpha, &bitmap… in test_CreateBitmapFromHBITMAP()
946 DeleteObject(hpal); in test_CreateBitmapFromHBITMAP()
/reactos/sdk/include/psdk/
H A Dolectl.h144 HPALETTE hpal; member
220 HRESULT WINAPI OleTranslateColor( OLE_COLOR clr, HPALETTE hpal,
H A Dgdiplusheaders.h409 Bitmap(HBITMAP hbm, HPALETTE hpal) in Bitmap() argument
412 lastStatus = DllExports::GdipCreateBitmapFromHBITMAP(hbm, hpal, &bitmap); in Bitmap()
525 FromHBITMAP(HBITMAP hbm, HPALETTE hpal) in FromHBITMAP() argument
527 return new Bitmap(hbm, hpal); in FromHBITMAP()
/reactos/dll/win32/windowscodecs/
H A Dimgfactory.c726 HBITMAP hbm, HPALETTE hpal, WICBitmapAlphaChannelOption option, IWICBitmap **bitmap) in ImagingFactory_CreateBitmapFromHBITMAP() argument
735 TRACE("(%p,%p,%p,%u,%p)\n", iface, hbm, hpal, option, bitmap); in ImagingFactory_CreateBitmapFromHBITMAP()
742 if (hpal) in ImagingFactory_CreateBitmapFromHBITMAP()
744 num_palette_entries = GetPaletteEntries(hpal, 0, 256, entry); in ImagingFactory_CreateBitmapFromHBITMAP()
1208 …I ComponentFactory_CreateBitmapFromHBITMAP(IWICComponentFactory *iface, HBITMAP hbm, HPALETTE hpal, in ComponentFactory_CreateBitmapFromHBITMAP() argument
1212 …return IWICImagingFactory2_CreateBitmapFromHBITMAP(&This->IWICImagingFactory2_iface, hbm, hpal, op… in ComponentFactory_CreateBitmapFromHBITMAP()
/reactos/win32ss/user/ntuser/
H A Dwindc.c1035 HPALETTE hpal, in NtUserSelectPalette() argument
1041 oldPal = GdiSelectPalette( hDC, hpal, ForceBackground); in NtUserSelectPalette()
/reactos/dll/win32/ieframe/
H A Dshellbrowser.c561 HPALETTE *hpal) in BrowserService_GetPalette() argument
564 FIXME("%p %p\n", This, hpal); in BrowserService_GetPalette()

12