Results 1 to 3 of 3

Thread: Patch: No minimum radius in CL_Draw::circle a.k.a Canvas::circle

  1. #1

    Default Patch: No minimum radius in CL_Draw::circle a.k.a Canvas::circle

    I was quite puzzled when I tried to draw a small red circle and my entire screen turned red. Turns out CL_Draw::gradient_circle makes some assumptions about the size of pixels, but I like mine small: [-1;1] screen coordinates.

    So here is a patch that fixes that:
    CL_Draw__gradient_circle.patch

    Instead of setting a minimum number of triangles, like I did, one could calculate the requirement from the gc's modelview... but I think it is not worth the effort.

  2. #2

    Default

    And, the 3.0 version: Canvas__gradient_circle.patch Couldn't figure out how to put both in one message.

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Both patches applied, many thanks

Similar Threads

  1. Circle map beagle spawn kills
    By predatorx5 in forum Tanked
    Replies: 4
    Last Post: 05-07-2012, 05:46 PM
  2. How to draw a changeable circle in clanlib?
    By martinsmith_storm in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 01-23-2012, 11:34 AM
  3. ClanLib 2.0 Minimum Hardware Requirements
    By wizardofoz in forum Official ClanLib SDK Forums
    Replies: 17
    Last Post: 07-04-2009, 05:34 PM
  4. CL 0.8 Canvas patch, get-rid-of-warnings patch
    By Trigve in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 09-30-2007, 11:08 PM
  5. canvas
    By Krux in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 08-30-2007, 04:30 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •