Type | Issue | Status | problem | Date | 3-Jan-2011 01:26 |
---|---|---|---|---|---|
Version | alpha 111 | Category | Graphics | Submitted by | oldes |
Platform | All | Severity | minor | Priority | normal |
Summary | ANSI to UNICODE conversion is needed on each text redraw |
---|---|
Description |
Can we somehow get rid of code like this one: https://github.com/rebolsource/r3-hostkit/blob/f331c6a46947e6e5afedc90f3d375bcd3f7ad8a1/src/os/win32/host-graphics.c#L714 It means that each ANSI string must be converted to UNICODE, which is required for AGG renderer. As this code is evaluated on each redraw (mouse move event as well), it can lower a performance if we would like to display longer text in graphic GUI. |
Example code |
Assigned to | n/a | Fixed in | - | Last Update | 31-Jan-2011 01:17 |
---|
Comments | |
---|---|
(0002997)
oldes 3-Jan-2011 01:38 |
Would it be possible to be able to force REBCHR to be UNICODE even if it has only ANSI content if needed?
And to provide a macro to obtain if it's unicode or not? |
(0003063)
Carl 31-Jan-2011 01:17 |
The correct solution is to detect the string type (BYTE or WIDE) at the level where the characters are begin interpreted and prepared for rendering. By doing that, no conversion should be needed. |
Date | User | Field | Action | Change |
---|---|---|---|---|
31-Jan-2011 01:17 | carl | Status | Modified | reviewed => problem |
31-Jan-2011 01:17 | carl | Comment : 0003063 | Added | - |
17-Jan-2011 04:26 | carl | Description | Modified | - |
17-Jan-2011 04:26 | carl | Status | Modified | submitted => reviewed |
3-Jan-2011 01:38 | oldes | Comment : 0002997 | Added | - |
3-Jan-2011 01:26 | oldes | Ticket | Added | - |