Lines Matching refs:This

7  * This library is free software; you can redistribute it and/or
12 * This library is distributed in the hope that it will be useful,
63 IWineD3DPaletteImpl *This = (IWineD3DPaletteImpl *)iface;
64 ULONG ref = InterlockedIncrement(&This->ref);
66 TRACE("(%p)->() incrementing from %u.\n", This, ref - 1);
72 IWineD3DPaletteImpl *This = (IWineD3DPaletteImpl *)iface;
73 ULONG ref = InterlockedDecrement(&This->ref);
75 TRACE("(%p)->() decrementing from %u.\n", This, ref + 1);
78 DeleteObject(This->hpal);
79 HeapFree(GetProcessHeap(), 0, This);
101 IWineD3DPaletteImpl *This = (IWineD3DPaletteImpl *)iface;
103 TRACE("(%p)->(%08x,%d,%d,%p)\n",This,Flags,Start,Count,PalEnt);
106 if (Start + Count > IWineD3DPaletteImpl_Size(This->Flags))
109 if (This->Flags & WINEDDPCAPS_8BITENTRIES)
115 *entry++ = This->palents[i].peRed;
118 memcpy(PalEnt, This->palents+Start, Count * sizeof(PALETTEENTRY));
126 IWineD3DPaletteImpl *This = (IWineD3DPaletteImpl *)iface;
129 TRACE("(%p)->(%08x,%d,%d,%p)\n",This,Flags,Start,Count,PalEnt);
130 TRACE("Palette flags: %#x\n", This->Flags);
132 if (This->Flags & WINEDDPCAPS_8BITENTRIES) {
137 This->palents[i].peRed = *entry++;
140 memcpy(This->palents+Start, PalEnt, Count * sizeof(PALETTEENTRY));
143 if(!(This->Flags & WINEDDPCAPS_ALLOW256))
146 This->palents[0].peRed = 0;
147 This->palents[0].peGreen = 0;
148 This->palents[0].peBlue = 0;
150 This->palents[255].peRed = 255;
151 This->palents[255].peGreen = 255;
152 This->palents[255].peBlue = 255;
155 if (This->hpal)
156 SetPaletteEntries(This->hpal, Start, Count, This->palents+Start);
162 if (This->ddraw->d->palette_convert != NULL)
163 This->ddraw->d->palette_convert(palent,This->screen_palents,start,count);
168 LIST_FOR_EACH_ENTRY(res, &This->device->resources, IWineD3DResourceImpl, resource.resource_list_entry)
172 if(impl->palette == This)
181 IWineD3DPaletteImpl *This = (IWineD3DPaletteImpl *)iface;
182 TRACE("(%p)->(%p)\n", This, Caps);
184 *Caps = This->Flags;
189 IWineD3DPaletteImpl *This = (IWineD3DPaletteImpl *)iface;
190 TRACE("(%p)->(%p)\n", This, Parent);
192 *Parent = This->parent;
193 IUnknown_AddRef(This->parent);