MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DrawItem

Method DrawItem

editor/TextureDialog.cpp:574–581  ·  view source on GitHub ↗

draw the item

Source from the content-addressed store, hash-verified

572
573// draw the item
574void CGrTextureListBox::DrawItem(int x, int y, grHardwareSurface *itemsurf, int item) {
575 int bm_handle;
576
577 bm_handle = GetTextureBitmap(item, 0);
578
579 itemsurf->load(bm_handle);
580 Desktop_surf->blt(x, y, itemsurf);
581}
582
583// if item was selected from the list box, this function is invoked.
584void CGrTextureListBox::OnItemSelected(int tex) {

Callers 1

ListBoxProcMethod · 0.45

Calls 3

GetTextureBitmapFunction · 0.85
loadMethod · 0.45
bltMethod · 0.45

Tested by

no test coverage detected