Well, I don't know exactily what I did, because I've tried different combination of changes in the configuration of the solution, but at the end it works.Thank you very much for your help.
Now that I'm able to execute cpctelera code, I've notice some differences between what it's shown in wincpctelera and winape in some of the tests.
This is the code of the first test...
#include <cpctelera.h>
#define BG_COLOR 0
void drawWindow(u8 x, u8 y, u8 width, u8 height, u8 fgColor, u8 bgColor)
{
u8 *pvideo;
// top and bottom fgColor horizontal lines
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x + 1, y);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(fgColor, fgColor), width - 4, 2);
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x + 1, y + height);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(fgColor, fgColor), width - 4, 2);
// top and bottom BG_COLOR horizontal lines
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x + 1, y + 2);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(BG_COLOR, BG_COLOR), width - 4, 2);
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x + 1, y + height - 2);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(BG_COLOR, BG_COLOR), width - 4, 2);
// Internal box
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x + 1, y + 4);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(bgColor, bgColor), width - 4, height - 6);
// top left corner
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x, y + 2);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(BG_COLOR, fgColor), 1, 2);
// left vertical line
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x, y + 4);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(fgColor, BG_COLOR), 1, height - 6);
//bottom left corner
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x, y + height - 2);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(BG_COLOR, fgColor), 1, 2);
// top right corner
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x + width - 3, y + 2);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(fgColor, BG_COLOR), 1, 2);
// right vertical line
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x + width - 3, y + 4);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(BG_COLOR, fgColor), 1, height - 6);
// bottom right corner
pvideo = cpct_getScreenPtr(CPCT_VMEM_START, x + width - 3, y + height - 2);
cpct_drawSolidBox(pvideo, cpct_px2byteM0(fgColor, BG_COLOR), 1, 2);
}
void main(void) {
cpct_disableFirmware();
cpct_setVideoMode(0);
drawWindow(3, 95, 21, 80, 1, 2);
// Loop forever
while (1);
}
And the result of both enpoints is in the snapshot attached.
Apparently the differece is related to the coordinates of the function cpct_drawSolidBox.