← Back to team overview

touch-packages team mailing list archive

[Bug 1382209] Re: [Enhancement] Add an API to lock surface orientation

 

** Changed in: mir
       Status: Fix Committed => Fix Released

** Also affects: mir (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mir in Ubuntu.
https://bugs.launchpad.net/bugs/1382209

Title:
  [Enhancement] Add an API to lock surface orientation

Status in Mir:
  Fix Released
Status in mir package in Ubuntu:
  Fix Released

Bug description:
  Sometimes, applications are written to take advantage of the entire surface of screen. So they need a way to tell MIR, the orientation they want for drawing themselves. This can be portrait for some, landscape for others, or even combinations.
  Without this feature, portrait application get distorted when running in a landscape oriented device.

  So, it would be nice to have an API, in MIR client, to precisely lock
  the orientation of the MirSurface used for drawing.

  My use case is a full-screen game, that require always Portrait
  Orientation. Another is a full-screen game that requires always
  Landscape.

  Better (future):
  - allow this even for non full-screen applications
  - allow combination like Portait+PortraitUpsideDown, or LandscapeLeft+LandscapeRight
  - allow to change the orientation when the application run (so not only when creating/requesting the surface).

  Remarks :
  - touch event may need to be translated into the correct coordinates system!

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1382209/+subscriptions