This site is no longer active and is available for archival purposes only. Registration and login is disabled.

COpying a part of the screen


COpying a part of the screen

Postby alucardo » Jul 24, 2006 @ 11:54pm

I'm trying to copy a part of the screen in order to be able to reinitialize graphics.
I'm using using the following piece of code:

following lines for copying the part of the screen I want to use:
case_vide = new E2DSurface; display->CreateSurface(case_vide,TAILLE_CASE,TAILLE_CASE); case_vide->BltFast(pos.x,pos.y,&display->buffer,r);

And this one to reinit the graphics
display->buffer.BltFast(pos.x,pos.y,case_vide,r);


I'm using the same method for copying the whole screen and it works but it doesn't work at all for just a part of the screen. If someone sees what's going wrong, thank you:)
alucardo
pm Member
 
Posts: 12
Joined: Mar 24, 2006 @ 11:10am


Postby edge » Jul 25, 2006 @ 5:18pm

Hi Alucardo,

Do you get an error code after calling BltFast (the one that doesn't work)?
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby alucardo » Sep 1, 2006 @ 12:15pm

alucardo
pm Member
 
Posts: 12
Joined: Mar 24, 2006 @ 11:10am


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron