aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx
diff options
context:
space:
mode:
authorMax Horn2009-02-21 18:21:00 +0000
committerMax Horn2009-02-21 18:21:00 +0000
commitb6c9b12e64426e57c24dc4742bed641546bbe395 (patch)
treed3ac706abc2e07ac5104aa838c944c8ebdc4380a /engines/sci/gfx
parent273271767b1a38a35765b3525b35273b0f22835f (diff)
downloadscummvm-rg350-b6c9b12e64426e57c24dc4742bed641546bbe395.tar.gz
scummvm-rg350-b6c9b12e64426e57c24dc4742bed641546bbe395.tar.bz2
scummvm-rg350-b6c9b12e64426e57c24dc4742bed641546bbe395.zip
SCI: Got rid of sci_sched_yield
svn-id: r38719
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r--engines/sci/gfx/resource/sci_pic_0.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/engines/sci/gfx/resource/sci_pic_0.cpp b/engines/sci/gfx/resource/sci_pic_0.cpp
index 43eea3bcc3..8f0e311f7c 100644
--- a/engines/sci/gfx/resource/sci_pic_0.cpp
+++ b/engines/sci/gfx/resource/sci_pic_0.cpp
@@ -39,8 +39,6 @@ namespace Sci {
#define INTERCOL(a, b) ((int) sqrt((((3.3 * (a))*(a)) + ((1.7 * (b))*(b))) / 5.0))
// Macro for color interpolation
-#define SCI_PIC0_MAX_FILL 30 // Number of times to fill before yielding to scheduler
-
#define SCI0_MAX_PALETTE 2
int sci0_palette = 0;
@@ -1310,7 +1308,6 @@ void gfxr_draw_pic01(gfxr_pic_t *pic, int flags, int default_palette, int size,
int temp;
int line_mode = style->line_mode;
int sci_titlebar_size = style->pic_port_bounds.y;
- int fill_count = 0;
byte op, opx;
#ifdef FILL_RECURSIVE_DEBUG
@@ -1464,11 +1461,6 @@ void gfxr_draw_pic01(gfxr_pic_t *pic, int flags, int default_palette, int size,
_gfxr_fill_1(pic, x, y + sci_titlebar_size, (flags & DRAWPIC01_FLAG_FILL_NORMALLY) ?
color : 0, priority, control, drawenable, sci_titlebar_size);
- if (fill_count++ > SCI_PIC0_MAX_FILL) {
- sci_sched_yield();
- fill_count = 0;
- }
-
#ifdef FILL_RECURSIVE_DEBUG
if (!fillmagc) {
int x, y;