All pastes #417336 Raw Edit

Unnamed

public cpp v1 · immutable
#417336 ·published 2007-03-30 20:33 UTC
rendered paste body
void window::draw(BITMAP * dest) {	if(!hidden) {		blit(title,dest,0,0,x,y,title->w,title->h);		blit(surface,dest,0,0,x,y+title_height,surface->w,surface->h);	}}void window_holder::draw_windows(BITMAP * dest) {	for(int i=0;i<container.size();i++) {		container[i]->draw(dest);	}}void onRedraw() {	// The screen is about to be redrawn- draw things to the double buffer	windows->draw_windows(display);}