<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto"><VAR id=yui-ie-cursor></VAR>My comments embedded below with >><BR style="RIGHT: auto" class=yui-cursor></SPAN></div>
<div><BR></div>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt"><FONT size=2 face=Arial>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911><B style="RIGHT: auto"><SPAN style="RIGHT: auto; FONT-WEIGHT: bold">From:</SPAN></B> vitamin <wineforum-user@winehq.org><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> wine-users@winehq.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, September 19, 2011 11:13 PM<BR><B style="RIGHT: auto"><SPAN style="RIGHT: auto; FONT-WEIGHT: bold">Subject:</SPAN></B> [Wine] Re: Replacing X11 backend driver with SDL<BR></FONT><BR><BR>rogercruz wrote:<BR>> 1) Would it be possible to run Wine on a non-X11 system if I replace its X11 backend driver with an SDL backend?<BR><BR>As-is - no, it's not possible. SDL is not X11 compatible (it's not a drop-in replacement for X11).<BR></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> I understand it won't be a drop-in replacement for X11 but my idea is to have a winesdl.drv</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> which provides the exact functionality Wine expects from the winex11.drv.   It may require</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> more coding and calls into SDL to generate the same graphics and input as X11 provides</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> but that will all be abstracted by the winesdl.drv.</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> Basically, I am looking to run Wine on a system which has no X11 subsystem but has</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> an SDL stack. </DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>rogercruz wrote:<BR>> 2) Does such a SDL driver exist or know of anyone who has worked on it but never made it into Wine?<BR><BR>No, and afaik no one even tried. Wine's X11 driver is far more complex than most people think.<BR></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> Oh yeah, I'm not minimizing the amount of work that would be required.  I am only looking</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> to hear if it is technically feasible or whether i am overlooking some obvious technical problem</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> that would prevent Wine from working with an SDL backend.. something like Wine requires</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> a particular shader which can't be duplicated with SDL, for example.</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911><BR style="RIGHT: auto">rogercruz wrote:<BR>> 3) Are all the X11 dependencies in Wine contained in the winex11.drv driver or are there other areas of the code where it uses X or assumes it is running on an X system?<BR><BR>For the most part yes. But there are number of parts in user32 (input, graphics), OpenGL, wined3d (both opengl, graphics), dinput (input, controls). There are few other places that I can't recall now.<BR></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> Good to know.  I was hoping it was all self contained to the winex11.drv.  I will look for other then.<BR style="RIGHT: auto"><BR>rogercruz wrote:<BR>> 4) Can SDL provide all the functionality Wine requires of its X driver or are there areas that can't be reproduced with SDL?<BR><BR>This is an open ended question. How much of Wine and how well do you want to work?<BR><BR>Not expert in SDL can't tell you for sure. But just rewriting window handling parts of winex11drv is a nightmare. Good luck with that.<BR><BR>>> I need to have Wine run as well as it does in Linux, that's the short answer but I will settle for</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> running Office 2007 and then add whatever else is needed to support other apps.</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911> </DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> Any other thoughts/guides/links on how to port Wine to another platform (pared down linux version) </DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt" class=ms__id10911>>> would be greatly appreciated it.<BR style="RIGHT: auto"><BR><BR><BR><BR><BR></DIV></DIV></div></body></html>