projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
dc4ee70
)
improved robustness of function for drawing global borders
author
Holger Schemel
<info@artsoft.org>
Tue, 22 Mar 2016 09:29:38 +0000
(10:29 +0100)
committer
Holger Schemel
<info@artsoft.org>
Tue, 22 Mar 2016 09:29:38 +0000
(10:29 +0100)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index a212e6ade9846a182bf796ab05865ab96781ce22..9d97bc9e0339cbe60be42e914fea08d466e24773 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-384,7
+384,8
@@
void DrawMaskedBorder(int redraw_mask)
void DrawMaskedBorderToTarget(int draw_target)
{
void DrawMaskedBorderToTarget(int draw_target)
{
- if (draw_target == DRAW_BORDER_TO_SCREEN)
+ if (draw_target == DRAW_BORDER_TO_BACKBUFFER ||
+ draw_target == DRAW_BORDER_TO_SCREEN)
{
DrawMaskedBorderExt(REDRAW_ALL, draw_target);
}
{
DrawMaskedBorderExt(REDRAW_ALL, draw_target);
}
@@
-397,7
+398,7
@@
void DrawMaskedBorderToTarget(int draw_target)
global.border_status = gfx.fade_border_source_status;
gfx.masked_border_bitmap_ptr = gfx.fade_bitmap_source;
}
global.border_status = gfx.fade_border_source_status;
gfx.masked_border_bitmap_ptr = gfx.fade_bitmap_source;
}
- else
+ else
if (draw_target == DRAW_BORDER_TO_FADE_TARGET)
{
global.border_status = gfx.fade_border_target_status;
gfx.masked_border_bitmap_ptr = gfx.fade_bitmap_target;
{
global.border_status = gfx.fade_border_target_status;
gfx.masked_border_bitmap_ptr = gfx.fade_bitmap_target;