src/viewport.cpp
changeset 8425 72a71d480c5f
parent 8424 4a488a90ccab
child 8427 143b0be22af1
equal deleted inserted replaced
8424:4a488a90ccab 8425:72a71d480c5f
   161 	_active_viewports = 0;
   161 	_active_viewports = 0;
   162 }
   162 }
   163 
   163 
   164 void DeleteWindowViewport(Window *w)
   164 void DeleteWindowViewport(Window *w)
   165 {
   165 {
   166 	CLRBIT(_active_viewports, w->viewport - _viewports);
   166 	ClrBit(_active_viewports, w->viewport - _viewports);
   167 	w->viewport->width = 0;
   167 	w->viewport->width = 0;
   168 	w->viewport = NULL;
   168 	w->viewport = NULL;
   169 }
   169 }
   170 
   170 
   171 void AssignWindowViewport(Window *w, int x, int y,
   171 void AssignWindowViewport(Window *w, int x, int y,