mirror of
https://github.com/CTurt/dsgmLib.git
synced 2025-06-19 07:05:37 -04:00
Scrolling background bug fix
This commit is contained in:
parent
19a0761b2c
commit
f6c56065aa
Binary file not shown.
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user