Browse Source

Add 1368x768 resolution ratio and fixup address alignment problem in

this resolution ratio

Change-Id: Icb94fca5f77b3142599bfbbd7126c35965e0d83f
Target:LS3A2H
master
lixuefeng 9 years ago
parent
commit
09aaf61cb7
  1. 1
      Targets/Bonito3a2h/dev/dc.c
  2. 13
      fb/cfb_console.c

1
Targets/Bonito3a2h/dev/dc.c

@ -62,6 +62,7 @@ struct vga_struc {
{ 71.38, 1152, 1208, 1328, 1504, 764, 765, 768, 791, }, /*"1152x764_60.00" */
{ 83.46, 1280, 1344, 1480, 1680, 800, 801, 804, 828, }, /*"1280x800_60.00" */
{ 98.60, 1280, 1352, 1488, 1696, 1024, 1025, 1028, 1057, }, /*"1280x1024_55.00" */
{ 85.86, 1368, 1440, 1584, 1800, 768, 769, 772, 795, }, /*"1368x768_60.00" */
{ 93.80, 1440, 1512, 1664, 1888, 800, 801, 804, 828, }, /*"1440x800_60.00" */
{ 120.28, 1440, 1528, 1680, 1920, 900, 901, 904, 935, }, /*"1440x900_67.00" */
};

13
fb/cfb_console.c

@ -742,9 +742,9 @@ void video_drawsline(char *str, int rows, int cols)
video_putchar(xx * VIDEO_FONT_WIDTH, (yy-1) * VIDEO_FONT_HEIGHT, str[pos + xx]);
}
}
memcpyl (str, &str[cols], (rows - 1) *cols >> 2);
memsetl (&str[(rows - 1) * cols], cols >> 2, CONSOLE_BG_COL);
memcpy (str, &str[cols], (rows - 1) *cols);
memset (&str[(rows - 1) * cols],CONSOLE_BG_COL,cols);
}
#endif
@ -894,6 +894,8 @@ void sisfb_copyarea(int sx,int sy,int dx,int dy,int width,int height);
#elif X800x600
memsetl (CONSOLE_ROW_LAST - CONSOLE_ROW_SIZE/2, CONSOLE_ROW_SIZE >> 2, CONSOLE_BG_COL);
#elif X1368x768
memsetl (CONSOLE_ROW_LAST, CONSOLE_ROW_SIZE >> 2, CONSOLE_BG_COL);
#else
memsetl (CONSOLE_ROW_LAST - CONSOLE_ROW_SIZE/2, CONSOLE_ROW_SIZE >> 2, CONSOLE_BG_COL);
#endif
@ -1459,6 +1461,8 @@ char console_buffer[2][37][101]={32};
char console_buffer[2][49][129]={32};//128*48->1024x768
#elif defined(X1280x1024)
char console_buffer[2][65][161]={32};//128*48->1024x768
#elif defined(X1368x768)
char console_buffer[2][49][172]={32};//128*48->1024x768
#elif defined(X320x240)
char console_buffer[2][16][41]={32};//40*15->320x240
#else
@ -1620,6 +1624,9 @@ int fb_init (unsigned long fbbase,unsigned long iobase)
#elif defined(X1280x1024)
pGD->winSizeX = 1280;
pGD->winSizeY = 1024;
#elif defined(X1368x768)
pGD->winSizeX = 1368;
pGD->winSizeY = 768;
#elif defined(X800x480)
pGD->winSizeX = 800;
pGD->winSizeY = 480;

Loading…
Cancel
Save