It is currently Thu Dec 13, 2018 6:48 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: DrawText RGB wrong color with DirectX11
PostPosted: Sun Nov 18, 2018 10:24 am 
Offline
Moderator
Moderator
User avatar

Joined: Thu Dec 31, 2009 11:05 pm
Posts: 710
Location: Berlin and Ibiza
Hello

RGB() does not work with DrawText() when using the DirectX11 subsystem:
Code:
EnableExplicit

InitSprite()
InitKeyboard()

If OpenScreen(1280, 1024, 32, "Screen")
 
  Repeat
    FlipBuffers()
    ClearScreen(RGB(255, 0, 0));Is correct
   
    If StartDrawing(ScreenOutput())
      DrawText(0, 0, "The text should be red, but is blue with the subsystem 'DirectX11'.", RGB(255, 0, 0))
     
      StopDrawing()
    EndIf
   
    ExamineKeyboard()
   
    If KeyboardReleased(#PB_Key_Escape)
      End
    EndIf
   
  ForEver
EndIf

_________________
ImageImageImageImageImage


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye