Commit 5e561b45 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Fix rendering in 4K colour modes

Detail:
  c/DrawDispl - displ_gcol() function was failing to do anything in 4K colour modes, resulting in selection boxes, grid marks, etc. appearing in arbitrary colours
Admin:
  Tested on Pandaboard


Version 1.27. Tagged as 'Draw-1_27'
parent 98a9edba
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "1.26"
Module_Version SETA 126
Module_MajorVersion SETS "1.27"
Module_Version SETA 127
Module_MinorVersion SETS ""
Module_Date SETS "09 Aug 2014"
Module_ApplicationDate SETS "09-Aug-14"
Module_Date SETS "24 Mar 2015"
Module_ApplicationDate SETS "24-Mar-15"
Module_ComponentName SETS "Draw"
Module_ComponentPath SETS "castle/RiscOS/Sources/Apps/Draw"
Module_FullVersion SETS "1.26"
Module_HelpVersion SETS "1.26 (09 Aug 2014)"
Module_FullVersion SETS "1.27"
Module_HelpVersion SETS "1.27 (24 Mar 2015)"
END
/* (1.26)
/* (1.27)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.26
#define Module_MajorVersion_CMHG 1.27
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 09 Aug 2014
#define Module_Date_CMHG 24 Mar 2015
#define Module_MajorVersion "1.26"
#define Module_Version 126
#define Module_MajorVersion "1.27"
#define Module_Version 127
#define Module_MinorVersion ""
#define Module_Date "09 Aug 2014"
#define Module_Date "24 Mar 2015"
#define Module_ApplicationDate "09-Aug-14"
#define Module_ApplicationDate "24-Mar-15"
#define Module_ComponentName "Draw"
#define Module_ComponentPath "castle/RiscOS/Sources/Apps/Draw"
#define Module_FullVersion "1.26"
#define Module_HelpVersion "1.26 (09 Aug 2014)"
#define Module_LibraryVersionInfo "1:26"
#define Module_FullVersion "1.27"
#define Module_HelpVersion "1.27 (24 Mar 2015)"
#define Module_LibraryVersionInfo "1:27"
......@@ -239,7 +239,7 @@ static void displ_gcol (int action, int plotcol, int bgcolour)
displcolour = draw_palette.c [plotcol].bytes.gcol;
switch ((unsigned) draw_currentmode.ncolour)
{ case 63u: case 0xFFFFu: case 0xFFFFFFFFu:
{ case 63u: case 0xFFFu: case 0xFFFFu: case 0xFFFFFFFFu:
ftracef4 ("GCOL %d, %d\nTINT %d, %d\n",
action, displcolour >> 2, 2, displcolour & 0xff);
bbc_gcol (action, displcolour >> 2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment