mirror of
https://github.com/CTurt/dsgmLib.git
synced 2025-06-20 07:35:40 -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 != NULL/* && background != DSGM_DEFAULT_FONT*/) {
|
||||||
if(layer->background != NULL) {
|
if(layer->background != NULL) {
|
||||||
if(layer->vramId != 0) {
|
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