From a710b32c615d2d8bdf3c07f5e9674d37d40a009d Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Wed, 10 Aug 2011 17:35:55 +0200 Subject: DREAMWEB: Removed useless push/pops --- engines/dreamweb/print.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'engines/dreamweb/print.cpp') diff --git a/engines/dreamweb/print.cpp b/engines/dreamweb/print.cpp index e1f446a978..105f7e14f9 100644 --- a/engines/dreamweb/print.cpp +++ b/engines/dreamweb/print.cpp @@ -117,12 +117,8 @@ uint8 DreamGenContext::printslow(uint16 x, uint16 y, uint8 maxWidth, bool center uint8 c0 = es.byte(si); uint8 c1 = es.byte(si+1); uint8 c2 = es.byte(si+2); - push(es); - push(ds); c0 = engine->modifyChar(c0); printboth(src, &offset, y, c0, c1); - ds = pop(); - es = pop(); ++si; if ((c1 == 0) || (c1 == ':')) { es = pop(); @@ -130,15 +126,11 @@ uint8 DreamGenContext::printslow(uint16 x, uint16 y, uint8 maxWidth, bool center return 0; } if (charCount != 1) { - push(ds); - push(es); c1 = engine->modifyChar(c1); data.word(kCharshift) = 91; uint16 offset2 = offset; printboth(src, &offset2, y, c1, c2); data.word(kCharshift) = 0; - es = pop(); - ds = pop(); for (int i=0; i<2; ++i) { waitframes(); if (ax == 0) -- cgit v1.2.3