Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8ce56a6 in mainline for uspace/lib/ui/private/window.h


Ignore:
Timestamp:
2021-09-07T08:53:42Z (6 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
ebb3538
Parents:
a0aeb8f
git-author:
Jiri Svoboda <jiri@…> (2021-09-06 17:53:32)
git-committer:
Jiri Svoboda <jiri@…> (2021-09-07 08:53:42)
Message:

Translate window rendering in console/SSR with translation GC

In full-screen mode (such as text/console) and server-side rendering
we need other mechanism than memory GC to translate the coordinates
while rendering. We use a translation GC (xlategc).

Note the extensively elaborate testing of this very simple GC seems
quite overboard. At least the very elaborate test_gc_t could be hoisted
into a library and used wherever a test GC is required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/private/window.h

    ra0aeb8f r8ce56a6  
    4646#include <io/pos_event.h>
    4747#include <memgfx/memgc.h>
     48#include <memgfx/xlategc.h>
    4849#include <types/ui/cursor.h>
    4950#include <types/ui/window.h>
     
    7071        /** Window memory GC (if client-side rendering) */
    7172        mem_gc_t *mgc;
     73        /** Translating GC (if full screen & server-side rendering) */
     74        xlate_gc_t *xgc;
    7275        /** Real window GC (if client-side rendering) */
    7376        gfx_context_t *realgc;
Note: See TracChangeset for help on using the changeset viewer.