Scrolling background bug fix

This commit is contained in:
CTurt 2014-09-21 16:27:34 +01:00
parent 19a0761b2c
commit f6c56065aa
3 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -107,7 +107,7 @@ void DSGM_ScrollBackgroundFull(DSGM_View *view, DSGM_Layer *layer) {
if(layer != NULL/* && background != DSGM_DEFAULT_FONT*/) {
if(layer->background != NULL) {
if(layer->vramId != 0) {
bgSetScroll(layer->vramId, layer->x - (layer->attachedToView ? view->x : 0), layer->y - (layer->attachedToView ? view->y : 0));
bgSetScroll(layer->vramId, layer->x + (layer->attachedToView ? view->x : 0), layer->y + (layer->attachedToView ? view->y : 0));
}
}
}