BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: screensaver bitmap out of screen  (Read 153 times)

korstiaan

  • Newbie
  • *
  • Posts: 2
    • View Profile
screensaver bitmap out of screen
« on: July 02, 2020, 10:31:26 AM »

Hi,

Is it normal that if I use the screensaver functionality, the bitmap goes partly off screen on the right hand side?
It bounces off the left, top and bottom but goes partly outside on the right hand side.

This is my test list:

Code: [Select]
EVE_LIB_BeginCoProList();
EVE_CMD_DLSTART();
EVE_CMD_SCREENSAVER();
EVE_CLEAR_COLOR_RGB(0, 0, 0);
EVE_CLEAR(1,1,1);
EVE_COLOR_RGB(255, 255, 255);
EVE_BITMAP_SOURCE(3056);
EVE_BITMAP_LAYOUT(EVE_FORMAT_RGB565, eve_img_bridgetek_logo_width * 2, eve_img_bridgetek_logo_height);
EVE_BEGIN(EVE_BEGIN_BITMAPS);
EVE_MACRO(0);
EVE_DISPLAY();
EVE_CMD_SWAP();
EVE_LIB_EndCoProList();
EVE_LIB_AwaitCoProEmpty();

Is it meant to be like this or is there a way to keep the image inside the visible screen area?

Korstiaan
Logged

BRT Community

  • Administrator
  • Full Member
  • *****
  • Posts: 220
    • View Profile
Re: screensaver bitmap out of screen
« Reply #1 on: July 06, 2020, 02:43:27 PM »

Hello,

Yes this is to be expected, it is a function of how the bitmap is placed on the screen.
The bitmap is positioned via the top left corner of the image when drawn. i.e. the x/y used by VERTEX2F represents the top left of the image. The VERTEX2F command updated via the macro register when using the screensaver command updates according to the screen parameters used, so it is possible that the bitmap may move off of the screen.

It is possible to use some translate commands to centre the image on the VERTEX2F position used, however this may still result in section of the bitmap appearing to be off of the screen.

Best Regards,
BRT Community
Logged