draw the item
| 572 | |
| 573 | // draw the item |
| 574 | void 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. |
| 584 | void CGrTextureListBox::OnItemSelected(int tex) { |
no test coverage detected