×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    30

    Unhappy Does Series 60 supports CSoftwareGraphicsAccelerator

    Does any one knows Series 60 support CSoftwareGraphicsAccelerator exactly ?
    According to my experience, althogh in the Series 60 SDK 2.0(or upper). It should support 2D Graphic Accelerator. But in reality. when I create a very simple example to test CSoftwareGraphicsAccelerator. and it will fail anyway. to be more specificly, it will show some message like "not supported" on real device screen.
    the following is my testing code.
    void CtempAppView:raw(const TRect& /*aRect*/) const
    {
    CFbsBitmap bitmap;
    TSize size(50,50);

    CSoftwareGraphicsAccelerator *accelerator;


    bitmap.Create(size,EColor64K);
    accelerator=CSoftwareGraphicsAccelerator::NewL(&bitmap);
    }

    and it will shut down in the line accelerator=CSoftwareGraphicsAccelerator::NewL(&bitmap);.

    Does anyone know series 60 support 2d graphic accelerator or not ?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,557
    Series 60 might, but if the device doesn't have one, then it is pretty natural for the call to fail, I should think.

  3. #3
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    328
    void CtempAppView:raw(const TRect& /*aRect*/) const
    {
    CFbsBitmap bitmap;
    TSize size(50,50);

    CSoftwareGraphicsAccelerator *accelerator;


    bitmap.Create(size,EColor64K);
    accelerator=CSoftwareGraphicsAccelerator::NewL(&bitmap);
    }

    You shouldn't be calling leaving functions within Draw. If these do leave, it wall cause a panic. I suggest you create both the accellerator and the bitmap in the ConstructL of your CtempAppView class.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×